Last active
June 13, 2016 05:07
-
-
Save anoopranawat/03c0dbb8267381bdb2d692ba052fd009 to your computer and use it in GitHub Desktop.
Function to change the `WP Blog and Widgets Pro` Post Type Slug
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Function to change the `WP Blog and Widgets Pro` post type slug | |
function wpbaw_pro_modify_news_post_slug( $slug ){ | |
$slug = 'blog-post'; // Write your desired slug | |
return $slug; | |
} | |
add_filter( 'wpbaw_pro_blog_post_slug', 'wpbaw_pro_modify_news_post_slug' ); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment