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 `FAQ` post type slug | |
function wp_faqp_modify_faq_post_slug( $slug ){ | |
$slug = 'sp_faq'; // Write your desired slug | |
return $slug; | |
} | |
add_filter( 'wp_faqp_post_slug', 'wp_faqp_modify_faq_post_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 `Timeline and History Slider Pro` post type slug | |
function wphtsp_modify_timeline_post_slug( $slug ){ | |
$slug = 'timeline_slider_slug'; // Write your desired slug | |
return $slug; | |
} | |
add_filter( 'wphtsp_post_slug', 'wphtsp_modify_timeline_post_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' ); | |
?> |
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 add support of featured image box. | |
function setup_featured_img() { | |
add_theme_support( 'post-thumbnails' ); | |
set_post_thumbnail_size( 624, 9999 ); | |
} | |
add_action( 'after_setup_theme', 'setup_featured_img' ); | |
?> |
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 Five Widgets Pro` post type slug | |
function wpnw_pro_modify_news_post_slug( $slug ){ | |
$slug = 'news'; // Write your desired slug | |
return $slug; | |
} | |
add_filter( 'wpnw_pro_news_post_slug', 'wpnw_pro_modify_news_post_slug' ); |
NewerOlder