How to unset class-templates.php?
-
In /redux-framework/redux-templates/classes/class-templates.php there is a function that adds 3 redux template types. Since I am already using Elementor, I have no need for these types and they confuse my clients. Is there a filter function to unset them?
/** * Hook to add the templates to the dropdown * * @param array $post_templates Default post templates array. * * @return array * @since 4.0.0 */ public function add_templates( $post_templates ) { $post_templates['redux-templates_contained'] = __( 'Redux Contained', 'redux-framework' ); $post_templates['redux-templates_full_width'] = __( 'Redux Full Width', 'redux-framework' ); $post_templates['redux-templates_canvas'] = __( 'Redux Canvas', 'redux-framework' ); return $post_templates; }
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘How to unset class-templates.php?’ is closed to new replies.