Unknown order handler on header

Support MB Settings Page Unknown order handler on headerResolved

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #21416
    LULU
    Participant

    Hi
    After I update the plugin and WP core.
    I just found there is a "handle-actions" on the box header. (one up arrow and one down arrow)
    Do you know what's happening for this? How to remove it?

    this is for setting page:

            $settings_pages[] = array(
                'id'          => 'some-options',
                'option_name' => 'some-options',
                'menu_title'  => 'title,
                'icon_url'    => 'dashicons-megaphone',
                'style'       => 'no-boxes',
                'columns'     => 1,
                'tab_style'   => 'left',
                'tabs'        => $some_array,
                'capability' => 'edit_some_options',
            );

    this what I put the metabox to setting page,
    I use some dynamic value to generate tab content.

            foreach ($this->theme_options['account_group'] as $tab) {
    
                $meta_boxes[] = array(
                    'title'          => 'title',
                    'id'             => $tab['account_id'] . '_account',
                    'class'          => 'details_group',
                    'settings_pages' => 'some-options',
                    'tab'            => $tab['account_id'],
                    'show'           => array(
                        'relation'   => 'OR',
                    ),
                    'include'       => array(
                        'relation'  => $relation,
                        'user_id'   => $tab['able_edit_id'],
                        'user_role' => $available_role,
                    ),
                    'fields'         => array(
    
                        array(
                            'id'     => $tab['account_id'].'_detail_group',
                            'type'   => 'group',
                            'clone' => 1,
                            'max_clone' => 10,
                            'default_state' => 'expanded',
                            'collapsible' => true,
                            'save_state' => true,
                            'sort_clone' => true,
                            'group_title' => $tab['account_title'],
                            'add_button' => esc_html__( '+ Add More', 'GNEWSlang' ),
                            'fields' => array( .... some box array here

    Please help, thank you

    #21420
    Long NguyenLong Nguyen
    Moderator

    Hi,

    WordPress version 5.5 supports to sort, drag and drop meta boxes. You can use this custom CSS code to remove buttons (up and down) on the settings page.

    .handle-order-higher, .handle-order-lower {
        display: none;
    }

    Apply the admin CSS code with this plugin https://wordpress.org/plugins/admin-css-mu/.

    #21433
    LULU
    Participant

    Thank you for replying.
    But I found this is useless. Can not move anything?

    Are there anyway to make it able to move the item?
    If not, Are there any filter to remove it? Or only CSS?

    #21440
    Long NguyenLong Nguyen
    Moderator

    Hi,

    It helps the user move up/down meta boxes (more than 2 meta boxes), see my screen record https://www.loom.com/share/bad88f48d4ff4b68adeca0e7498365dd.

    There is no filter to remove buttons up/down, you can take a look in this file of WordPress core https://github.com/WordPress/WordPress/blob/master/wp-admin/includes/template.php#L1336-L1367.

    #21442
    LULU
    Participant

    Got it!
    thank you so much

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.