daily pastebin goal
41%
SHARE
TWEET

Untitled

a guest Jan 16th, 2018 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function wpd_page_link( $link, $post_id ){
  2.     global $wp_query;
  3.     if( isset( $wp_query->query_vars['app-view'] ) ){
  4.         return $link . 'app-view/';
  5.     }
  6.     return $link;
  7. }
  8. add_filter( 'page_link', 'wpd_page_link', 10, 2 );
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top