• Resolved dallass

    (@dallass)


    Hello,

    In the wordpress admin, I would like to access the plugin from the Settings tab instead of the Plugins tab.
    What files do I have to change to do this ?

    Thanks !

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Richard Webster

    (@rwebster85)

    You could try adding this code to your site somewhere:

    
    remove_action('admin_menu', 'somfrp_main_admin_menu', 95);
    add_action('admin_menu', 'somfrp_main_admin_menu_settings', 96);
    function somfrp_main_admin_menu_settings() {
    	add_options_page( 
    		'Frontend Reset Password',
    		'Frontend Reset Password',
    		'manage_options',
    		'somfrp_options_page',
    		'somfrp_options_page'
    	);
    }
    add_filter( 'somfrp_plugin_link', 'somfrp_main_admin_menu_settings_url' );
    function somfrp_main_admin_menu_settings_url( $link ) {
    	return 'options-general.php?page=somfrp_options_page';
    }
    
    Thread Starter dallass

    (@dallass)

    That was fast!
    It was what I needed. I pasted the code in the functions.php of the theme.

    Thank you.

    I have another question. I have translated the file via the .pot file, but what name should I give the files so the plugin can use it ?

    Later edit: Should be saved as frontend-reset-password-ro_RO.mo and frontend-reset-password-ro_RO.po and upload to /wp-content/languages/plugins/

    Plugin Author Richard Webster

    (@rwebster85)

    Awesome mate. If you want to contribute to the plugin for translations take a look here:

    https://translate.wordpress.org

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Access of the plugin’ is closed to new replies.