Advertisement
fauzanjeg

JKIT || Remove All Extra Options By JKit

May 23rd, 2023
808
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.74 KB | None | 0 0
  1. /**
  2.  * Remove All Extra Options By JKit
  3.  */
  4. function remove_all_extra_options_by_jkit() {
  5.     remove_action( 'elementor/element/common/_section_style/after_section_end', array( \Jeg\Elementor_Kit\Elements\Element::instance(), 'add_widget_options' ) );
  6.     remove_action( 'elementor/element/column/section_advanced/after_section_end', array( \Jeg\Elementor_Kit\Elements\Element::instance(), 'add_column_options' ) );
  7.     remove_action( 'elementor/element/section/section_advanced/after_section_end', array( \Jeg\Elementor_Kit\Elements\Element::instance(), 'add_section_options' ) );
  8.     remove_action( 'wp_enqueue_scripts', array( \Jeg\Elementor_Kit\Elements\Element::instance(), 'enqueue_scripts' ) );
  9. }
  10. add_action( 'init', 'remove_all_extra_options_by_jkit' );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement