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 post

A utility class for performing operations on or around WP posts.

Namespace: ski
Located at packages/ski.web/services/ski.wp.post.php

Methods summary

public static string
# get_opt( string $slug, mixed $default = null )

Retrives the value of a setting previously saved to the database typically through the use of the metabox mb_ctl components or through the use of custom fields.

Retrives the value of a setting previously saved to the database typically through the use of the metabox mb_ctl components or through the use of custom fields.

Parameters

$slug
string
$slug The unique key of the value to be retrieved
$default
mixed
$default If no value is found in the database, return this value instead

Returns

string
The desired value
public static string
# get_opt_explicit( object/int $post, string $slug, mixed $default = null )

Retrives the value of a setting previously saved to the database typically through the use of the metabox mb_ctl components or through the use of custom fields.

Retrives the value of a setting previously saved to the database typically through the use of the metabox mb_ctl components or through the use of custom fields.

Parameters

$post
object/int
$post The post or post ID with the option to be retrieved
$slug
string
$slug The unique key of the value to be retrieved
$default
mixed
$default If no value is found in the database, return this value instead

Returns

string
The desired value
public static string
# get_permalink_by_slug( string $slug )

Transforms a page/post slug into a full URL.

Transforms a page/post slug into a full URL.

Note: If you have a hierarchical page, you must include the full path (e.g. 'parent-page/sub-page').

Parameters

$slug
string
$slug The slug of the page/post desired

Returns

string
The desired URL, or nothing if not found

Link

http://codex.wordpress.org/Function_Reference/get_page_by_path
public static object
# get_stickies( integer $num_stickies = -1 )

Retrieves a list of the sticky posts in descending date order. This list of posts can then be used in the a WP loop.

Retrieves a list of the sticky posts in descending date order. This list of posts can then be used in the a WP loop.

Parameters

$num_stickies
integer
$num_stickies Can limit the number of stickies to retrieve

Returns

object
A WP Query

Link

http://justintadlock.com/archives/2009/03/28/get-the-latest-sticky-posts-in-wordpress

Magic methods summary

BluePrint-Q API documentation generated by ApiGen 2.8.0