summaryrefslogtreecommitdiff
path: root/functions.php
diff options
context:
space:
mode:
authorMax2019-02-11 01:44:37 +0100
committerMax2019-02-11 01:44:37 +0100
commit43a8c0fe50529a6b4161d12f087925c06ce37574 (patch)
treef49f3c07f320fa0feb29a07d9087e6d33002a4fb /functions.php
parentc5d6d930f1485db0902aba64e28703b78acf205d (diff)
downloadfuselkoenig_de-43a8c0fe50529a6b4161d12f087925c06ce37574.tar.gz
First version of correct link generation for inclusion of special offers.
Diffstat (limited to 'functions.php')
-rw-r--r--functions.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/functions.php b/functions.php
index 7eebc3f..7553f43 100644
--- a/functions.php
+++ b/functions.php
@@ -225,6 +225,15 @@ function comment_form_hide_cookies_consent( $fields ) {
add_filter( 'comment_form_default_fields', 'comment_form_hide_cookies_consent' );
/**
+ * Allows to pass the parameter 'sort' and 'order' to WP pages.
+ */
+add_filter('query_vars', function ( $qvars ) {
+ $qvars[] = '_sort';
+ $qvars[] = '_order';
+ return $qvars;
+ } );
+
+/**
* Function to get the clean title of a blog post.
*/
if ( ! function_exists("get_my_clean_title")) {