Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function wp_messages_link( $link, $post_id ) {
- if ( 'gc-sermons' == get_post_type( $post_id ) ) {
- return add_query_arg( $_GET, $link );
- }
- return $link;
- }
- add_filter( 'post_type_link', 'wp_messages_link', 10, 2 );
Add Comment
Please, Sign In to add comment