Tag Info

Hot answers tagged

3

First of all I have to say that wp_get_referer() is not 100% reliable because it relies on $_SERVER['HTTP_REFERER'] that is not 100% reliable, from php.net docs: The address of the page (if any) which referred the user agent to the current page. This is set by the user agent. Not all user agents will set this, and some provide the ability to modify ...


1

You can filter page_link to modify the output of any page's permalink value. The simplest way to identify the page is by ID, then you can append the query string via add_query_arg: function wpd_append_query_string( $url, $id ) { if( 42 == $id ) { $url = add_query_arg( 'ngg_force_update', 1, $url ); } return $url; } add_filter( ...



Only top voted, non community-wiki answers of a minimum length are eligible