Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function divi_child_theme_setup() {
- if ( ! class_exists('ET_Builder_Module') ) {
- return;
- }
- get_template_part( 'custom-modules/cfwpm' );
- $cfwpm = new Custom_ET_Builder_Module_Post_Slider();
- remove_shortcode( 'et_pb_post_slider' );
- add_shortcode( 'et_pb_post_slider', array($cfwpm, '_shortcode_callback') );
- }
- add_action( 'wp', 'divi_child_theme_setup', 9999 );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement