BluePrint-Q
  • Namespace
  • Class

Namespaces

  • bpq
  • ski

Classes

  • bootstrap
  • convert
  • cz_checkbox_ctl
  • cz_color_palette_ctl
  • cz_date_picker_ctl
  • cz_detail_ctl
  • cz_divider_1_ctl
  • cz_divider_2_ctl
  • cz_drop_categories_ctl
  • cz_drop_ctl
  • cz_drop_image_sizes_ctl
  • cz_drop_menu_items_ctl
  • cz_drop_menus_ctl
  • cz_drop_pages_ctl
  • cz_drop_post_types_ctl
  • cz_drop_posts_ctl
  • cz_drop_tags_ctl
  • cz_drop_taxonomies_ctl
  • cz_drop_terms_ctl
  • cz_drop_users_ctl
  • cz_dummy_ctl
  • cz_media_library_ctl
  • cz_number_bar_ctl
  • cz_radio_image_align_x_ctl
  • cz_radio_image_align_y_ctl
  • cz_radio_image_alignment_ctl
  • cz_radio_image_ctl
  • cz_radio_image_sidebar_layout_ctl
  • cz_radio_image_site_span_layout_ctl
  • cz_radio_text_ctl
  • cz_text_area_ctl
  • cz_textbox_ctl
  • db
  • db_recordset
  • drop
  • mail
  • math
  • mb_checkbox_ctl
  • mb_ctl
  • mb_date_picker_ctl
  • mb_detail_ctl
  • mb_divider_ctl
  • mb_drop_ctl
  • mb_media_library_ctl
  • mb_number_bar_ctl
  • mb_radio_image_ctl
  • mb_radio_image_sidebar_layout_ctl
  • mb_radio_image_site_span_layout_ctl
  • mb_radio_text_ctl
  • mb_repeater_ctl
  • mb_text_area_ctl
  • mb_text_ctl
  • mb_text_notice_ctl
  • mb_textbox_ctl
  • media
  • metabox
  • path
  • post
  • question
  • sanitize
  • string
  • textbox

Traits

  • cz_supplement

Functions

  • customize_register_section
  • cz_enqueue
  • init
  • metabox_sample

Class metabox

Represents a single metabox.

Namespace: ski
Link: http://codex.wordpress.org/Function_Reference/add_meta_box
Located at packages/ski.web/controls/ski.wp.metabox.php

Methods summary

public
# __construct( array $args )

Constructor.

Constructor.

Parameters

$args
array
$args Can be any of the following arguments: string $slug The unique name to be used as both the ID of the metabox. string $title The text to display in the top portion of the metabox. array $screens An array of strings that represent the posttypes this metabox applies. string $context Can be 'normal', 'advanced', or 'side' indicating where the metabox is displayed. string $priority Can be 'default' or a number that helps indicate where the metabox is displayed. array $controls A listing of the mb_ctl instances to be displayed inside this metabox.
public
# add( )

The main entry into creation of metaboxes - calling code defines the boxes through a custom hook.

The main entry into creation of metaboxes - calling code defines the boxes through a custom hook.

public
# enqueue( )

Queues up scripts and styles.

Queues up scripts and styles.

public
# render( type $post )

Displays the contents of this metabox - the controls should have been created in the constructor.

Displays the contents of this metabox - the controls should have been created in the constructor.

Parameters

$post
type
$post An object representing the current post Note: A second parameter is optional that contains the ID, title, callback, and any args passed from the add_meta_box call; however, this info is already stored on this object
public
# save( integer $post_id )

The validation checking is pretty much verbatim from the WP codex. This function does a bunch of security-checking, then runs through the controls to ask for the POST value from each, then places that value in the database.

The validation checking is pretty much verbatim from the WP codex. This function does a bunch of security-checking, then runs through the controls to ask for the POST value from each, then places that value in the database.

Parameters

$post_id
integer
$post_id The ID of the current post.

Link

http://codex.wordpress.org/Function_Reference/sanitize_text_field

Magic methods summary

BluePrint-Q API documentation generated by ApiGen 2.8.0