Wordpress article edit page to add metabox

 add_meta_box($id,$title,$callback,$screen,$context:,$priority);

parameter

  • $ ID (string) (Required) Meta - module HTML "ID" attribute

  • The title $ title (character string) (Required) Meta - module, visible to the user

  • $ The callback function (callback) (Required) to output HTML code modules Meta

  • $ Post_type (string) (Required) Article type Meta display module, which can be paper (post), page (page), link (link), accessories (attachment) or custom post types (custom post types alias)

  • $ Context display position (string) (optional) Meta - module ( 'normal', 'advanced', or 'side') Default: 'advanced'

  • $ Priority (string) (optional) priority level ( 'high', 'core', 'default'or' low ') Meta module displays default values:' default '

  • $ Callback_args (array) (optional) parameters passed to the callback function. $ post callback function receives the objects, and any other parameters passed by this variable.

Source File

wp-admin/includes/template.php

Reference
  1. WordPress Meta Box Add method steps
  2. Plugin API/Action Reference/add meta boxes 案列
  3. add_meta_box () the Add Meta Box parameters
  4. Adding Custom Meta Boxes to the WordPress Admin Interface
  5. How To Create Wordpress Meta Boxes
  6. WordPress add Add_Meta_Box use have add_meta_box () parameter description of Chinese and case
  7. WordPress function: add meta box (custom add Meta module)

Guess you like

Origin www.cnblogs.com/fsong/p/11491541.html