Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function wpd_page_link( $link, $post_id ){
- global $wp_query;
- if( isset( $wp_query->query_vars['app-view'] ) ){
- return $link . 'app-view/';
- }
- return $link;
- }
- add_filter( 'page_link', 'wpd_page_link', 10, 2 );
Add Comment
Please, Sign In to add comment