• Haris

    (@haristonjoo)


    Hi Matthew!,

    This plugin was a great plugin, but there was a problem when i become an editor level, there is an option page, but i was unable to save the options.

    Then i add this script to your plugin, so please update ??
    restrict-categories.php on line 331

    /**
     * Add editor capability to save the option
     *
     */
    $editor = get_role('editor');
    $editor->add_cap('edit_theme_options');
    
    add_filter( 'option_page_capability_RestrictCats_options_group', 'RestrictCats_editor_capability' );
    add_filter( 'option_page_capability_RestrictCats_user_options_group', 'RestrictCats_editor_capability' );
    function RestrictCats_editor_capability( $cap ) {
        return 'edit_theme_options';
    }

    https://www.ads-software.com/plugins/restrict-categories/

  • The topic ‘Fixing script for "editor unable to save"’ is closed to new replies.