• Hi

    What is the difference between “Edit themes” and “Edit themes options”?
    Or I can see that “Edit themes options” gives access to the menu “Customize” but dont see what “Edit themes” gives access to?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Vladimir Garagulya

    (@shinephp)

    ‘edit_themes’ capability protects menu item: Themes -> Theme file editor,
    which allows online editing theme files using WordPress internal file editor.

    Thread Starter michaelgustafson

    (@michaelgustafson)

    Great. Thanks for the answer.

    I dont see that menu option regardless these what I do with those check boxes. Maybe admin has disabled them.

    Plugin Author Vladimir Garagulya

    (@shinephp)

    Yes, site admin has the option to block on site files editing (wp-includes/capabilities.php, #597):


    case 'edit_files':
    case 'edit_plugins':
    case 'edit_themes':
    // Disallow the file editors.
    if ( defined( 'DISALLOW_FILE_EDIT' ) && DISALLOW_FILE_EDIT ) {
    $caps[] = 'do_not_allow';
    } elseif ( ! wp_is_file_mod_allowed( 'capability_edit_themes' ) ) {
    $caps[] = 'do_not_allow';
    } elseif ( is_multisite() && ! is_super_admin( $user_id ) ) {
    $caps[] = 'do_not_allow';
    } else {
    $caps[] = $cap;
    }

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Difference between “Edit themes” and “Edit themes options”?’ is closed to new replies.