Overview
  • Namespace
  • Class

Namespaces

  • nk2580
    • wordsmith
      • Actions
      • Endpoints
      • Environment
      • Filters
      • Inputs
        • Fields
      • Menus
      • MetaBoxes
      • PostTypes
      • Routes
      • Scripts
      • SettingsPages
      • Taxonomies
        • Hierarchical
        • NonHierarchical
      • UserCapabilities
      • UserRoles
      • Utillities
        • NavWalkers

Classes

  • MetaBox

Class MetaBox

Namespace: nk2580\wordsmith\MetaBoxes
Located at MetaBoxes/MetaBox.php

Methods summary

public
# __construct( )

Hook into the appropriate actions when the class is constructed.

Hook into the appropriate actions when the class is constructed.

public
# init( )
public
# add_boxes( )

Adds the meta box container.

Adds the meta box container.

public
# save( integer $post_id )

Save the meta when the post is saved.

Save the meta when the post is saved.

Parameters

$post_id
The ID of the post being saved.
public
# verify_save( $post_id )

vefiy we can save the data.

vefiy we can save the data.

public
# content( WP_Post $post )

Render Meta Box content.

Render Meta Box content.

Parameters

$post
The post object.
public
# load_box_content( $post )
public
# save_box_content( $post_id )

Properties summary

protected $name
#
protected $post_type
#
protected $title
#
protected string $context
# 'side'
protected string $priority
# 'default'
protected array $fields
# [ ['label' => "Exmple Field", 'meta-key' => "example_meta", 'control' => "nk2580\wordsmith\Inputs\Fields\TextField"], ]
API documentation generated by ApiGen