Last active
January 18, 2017 12:14
-
-
Save anoopranawat/921431b898b2fc25ccb5ca6a39dfb020 to your computer and use it in GitHub Desktop.
Function to change the WP News and Scrolling 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 News and Scrolling` Widgets Pro category slug | |
function wpnw_pro_modify_news_cat_slug( $slug ){ | |
$slug = 'news-category'; // Write your desired slug | |
return $slug; | |
} | |
add_filter( 'wpnw_pro_news_cat_slug', 'wpnw_pro_modify_news_cat_slug' ); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment