Support » Plugin: Easy FancyBox » Remove settings section

  • Resolved holzhannes

    (@holzhannes)


    I like to hide the settings section on (Media > Settings), can I remove it with a remove_action?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi, interesting question šŸ™‚

    You should be able to do this with

    
    remove_action( 'admin_init', array( 'easyFancyBox_Admin', 'add_settings_section' ) );
    

    But be sure to call this at plugins_loaded or later…

    Thread Starter holzhannes

    (@holzhannes)

    Thank you for your Answer. It is working! I using it in after_setup_theme in a Child Theme for a Multisite/Network. Settings for Fancybox are set by the theme and then hidden šŸ˜‰

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Remove settings section’ is closed to new replies.