WordPress.org

Ready to get started?Download WordPress

Forums

Enhanced Media Library
[resolved] Hook to move Media Settings under Settings (3 posts)

  1. Gregg Franklin
    Member
    Posted 10 months ago #

    I am curious if it is possible to move "Media Setttings" Under Settings.

    https://wordpress.org/plugins/enhanced-media-library/

  2. webbistro
    Member
    Plugin Author

    Posted 8 months ago #

    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

  3. webbistro
    Member
    Plugin Author

    Posted 8 months ago #

    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.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.