1

I'm working on a system to add custom options to the WordPress menu editor, and I'd like to integrate it with the Screen Options panel. In my research, I couldn't find anything on modifying an existing screen options menu; is this possible? See the screenshots below to better understand what I'm trying to accomplish.

Default "Screen Options" on Appearance > Menus:

default

Goal "Screen Options" on Appearance > Menus:

custom

1

Figured this out by looking through the WordPress source code 🙂

function new_site_add_custom_screen_options($args) {
    $args["custom_option_1"] = __("Custom Option 1", "new_site");
    $args["custom_option_2"] = __("Custom Option 2", "new_site");

    return $args;
}
add_filter("manage_nav-menus_columns", "new_site_add_custom_screen_options", 20);

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.