首页 WordPress函数大全 remove_meta_box()

remove_meta_box()

2020-05-02 / 5197阅 / 悠然

如何你看完本文还不知道如何使用该函数,可以联系我定制视频教程,50元/个函数,学不会全额退款

remove_meta_box( string $id, string|array|WP_Screen $screen, string $context )

从>移除一个meta框

Contents

  • Description
    • Parameters
    • Source
    • Changelog
  • More Information
  • Related
    • Uses
    • Used By
  • User Contributed Notes

描述

参数

$id

(string)
(Required)
Meta box ID (used in the 'id' attribute for the meta box).

$screen

(string|array|WP_Screen)
(Required)
The screen or screens>WP_Screen object, or array of screen IDs.

$context

(string)
(Required)
The context within the screen where the box is set to display. Contexts vary from screen to screen. Post edit screen contexts include 'normal', 'side', and 'advanced'. Comments screen contexts include 'normal' and 'side'. Menus meta boxes (accordion sections) all use the 'side' context.

大家谈论
    我的见解