WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Hook to move Media Settings under Settings

[Resolved] Hook to move Media Settings under Settings

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author webbistro

    @webbistro

    Hello Gregg,

    At the moment – no. I am going to move Settings -> Media Settings under wide Media Settings menu. Maybe you will like it more.

    Nadia

    Plugin Author webbistro

    @webbistro

    Although, you can use following code:

    add_action('admin_menu', 'move_eml_menu');
    
    function move_eml_menu()
    {
    	remove_menu_page( 'eml-taxonomies-options' );
    	remove_menu_page( 'eml-mimetype-options' );
    
    	$eml_taxonomies_options_suffix = add_options_page(
    		__('Media Taxonomies','eml'),
    		__('Media Taxonomies','eml'),
    		'manage_options',
    		'eml-taxonomies-options'
    	);
    
    	$eml_mimetype_options_suffix = add_options_page(
    		__('MIME Types','eml'),
    		__('MIME Types','eml'),
    		'manage_options',
    		'eml-mimetype-options',
    		'wpuxss_eml_print_mimetypes_options'
    	);
    
    	add_action('admin_print_scripts-' . $eml_taxonomies_options_suffix, 'wpuxss_eml_admin_settings_pages_scripts');
    	add_action('admin_print_scripts-' . $eml_mimetype_options_suffix, 'wpuxss_eml_admin_settings_pages_scripts');
    }

    Also please notice it will need to be changed after plugin’s upgrade. Ask me about it if I forget to add upgrade myself.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] Hook to move Media Settings under Settings’ is closed to new replies.