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 modify 'Video gallery and Player Pro' Post agrs */ | |
function wpos_vgp_modify_post_args( $post_args ) { | |
$post_args['public'] = true; | |
$post_args['rewrite'] = true; | |
return $post_args; | |
} | |
add_filter( 'wp_vgp_post_type_args', 'wpos_vgp_modify_post_args' ); |
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 | |
/** | |
* Filter to add custom design in WP Responsive Recent Post Slider Pro - Carousel | |
*/ | |
function wpos_wprpsp_crousel_custom_designs( $design_arr ) { | |
$design_arr['custom-1'] = __('Custom Design 1', 'wp-responsive-recent-post-slider'), | |
return $design_arr; | |
} | |
add_filter( 'wprpsp_recent_post_crousel_designs', 'wpos_wprpsp_crousel_custom_designs' ); |
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 modify 'WP Featured Content and Slider Pro' Post agrs */ | |
function wpos_fcasp_modify_post_args( $post_args ) { | |
$post_args['public'] = true; | |
$post_args['rewrite'] = true; | |
return $post_args; | |
} | |
add_filter( 'wp_fcasp_post_type_args', 'wpos_fcasp_modify_post_args' ); |
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 | |
/** | |
* Filter to add custom design in Portfolio Plugin | |
*/ | |
function wpos_wp_pap_pro_slider_custom_designs( $design_arr ) { | |
$design_arr['custom-1'] = __('Custom Design 1', 'portfolio-and-projects'), | |
return $design_arr; | |
} |
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' ); | |
?> |
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` 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 | |
// 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 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' ); |
NewerOlder