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' ); |
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 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 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 `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 dequeue script so it will not conflict with WPOS plugin | |
function wpos_dequeue_conflict_script() { | |
wp_dequeue_script( 'retinajs' ); | |
} | |
add_action( 'wp_enqueue_scripts', 'wpos_dequeue_conflict_script', 25 ); | |
// Function to enqueue dequeue script again so theme functionality will not be break | |
function wpos_enqueue_dequeue_script() { | |
wp_enqueue_script( 'retinajs' ); |
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' ); | |
?> |
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_tsasp_modify_faq_post_slug($team_slug){ | |
$team_slug = 'team-showcase'; // Write your desired slug | |
return $team_slug; | |
} | |
add_filter('wp_tsasp_post_slug', 'wp_tsasp_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 | |
// Action to load script for optimizepress | |
add_action('op_footer', 'wp_faqp_optimizepress_script'); | |
function wp_faqp_optimizepress_script() { | |
// Enqueing required script | |
wp_enqueue_script( 'wp-faqp-public-script' ); | |
} | |
?> |
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` category slug | |
function wp_faqp_modify_faq_cat_slug( $slug ){ | |
$slug = 'faq_cat'; // Write your desired slug | |
return $slug; | |
} | |
add_filter( 'wp_faqp_cat_slug', 'wp_faqp_modify_faq_cat_slug' ); | |
?> |
OlderNewer