Changeset 37342 for trunk/src/wp-includes/post.php
- Timestamp:
- 05/02/2016 03:59:56 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post.php
r37334 r37342 904 904 * @type array $labels An array of labels for this post type. If not set, post 905 905 * labels are inherited for non-hierarchical types and page 906 * labels for hierarchical ones. {@see get_post_type_labels()}.906 * labels for hierarchical ones. get_post_type_labels(). 907 907 * @type string $description A short descriptive summary of what the post type is. 908 908 * Default empty. … … 917 917 * results. Default is the opposite value of $public. 918 918 * @type bool $publicly_queryable Whether queries can be performed on the front end for the post type 919 * as part of {@see parse_request()}. Endpoints would include:919 * as part of parse_request(). Endpoints would include: 920 920 * * ?post_type={post_type_key} 921 921 * * ?{post_type_key}={single_post_slug} … … 948 948 * @type array $capabilities Array of capabilities for this post type. $capability_type is used 949 949 * as a base to construct capabilities by default. 950 * {@see get_post_type_capabilities()}.950 * See get_post_type_capabilities(). 951 951 * @type bool $map_meta_cap Whether to use the internal default meta capability handling. 952 952 * Default false. 953 * @type array $supports An alias for calling {@see add_post_type_support()} directly.954 * Defaults to arraycontaining 'title' & 'editor'.953 * @type array $supports An alias for calling add_post_type_support() directly. Defaults to array 954 * containing 'title' & 'editor'. 955 955 * @type callable $register_meta_box_cb Provide a callback function that sets up the meta boxes for the 956 956 * edit form. Do remove_meta_box() and add_meta_box() calls in the 957 957 * callback. Default null. 958 958 * @type array $taxonomies An array of taxonomy identifiers that will be registered for the 959 * post type. Taxonomies can be registered later with 960 * {@see register_taxonomy()} or {@see register_taxonomy_for_object_type()}.959 * post type. Taxonomies can be registered later with register_taxonomy() 960 * or register_taxonomy_for_object_type(). 961 961 * Default empty array. 962 962 * @type bool|string $has_archive Whether there should be post type archives, or if a string, the … … 5489 5489 * @param string $date Date the last post was published. 5490 5490 * @param string $timezone Location to use for getting the post published date. 5491 * See {@see get_lastpostdate()}for accepted `$timezone` values.5491 * See get_lastpostdate() for accepted `$timezone` values. 5492 5492 */ 5493 5493 return apply_filters( 'get_lastpostdate', _get_last_post_time( $timezone, 'date', $post_type ), $timezone ); … … 5504 5504 * @since 4.4.0 The `$post_type` argument was added. 5505 5505 * 5506 * @param string $timezone Optional. The timezone for the timestamp. See {@see get_lastpostdate()}5506 * @param string $timezone Optional. The timezone for the timestamp. See get_lastpostdate() 5507 5507 * for information on accepted values. 5508 5508 * Default 'server'. … … 5519 5519 * Returning anything other than false will short-circuit the function. 5520 5520 * @param string $timezone Location to use for getting the post modified date. 5521 * See {@see get_lastpostdate()}for accepted `$timezone` values.5521 * See get_lastpostdate() for accepted `$timezone` values. 5522 5522 * @param string $post_type The post type to check. 5523 5523 */ … … 5541 5541 * @param string $lastpostmodified Date the last post was modified. 5542 5542 * @param string $timezone Location to use for getting the post modified date. 5543 * See {@see get_lastpostdate()}for accepted `$timezone` values.5543 * See get_lastpostdate() for accepted `$timezone` values. 5544 5544 */ 5545 5545 return apply_filters( 'get_lastpostmodified', $lastpostmodified, $timezone ); … … 5846 5846 * @param int $deprecated Not used. Can be set to null. Never implemented. Not marked 5847 5847 * as deprecated with _deprecated_argument() as it conflicts with 5848 * wp_transition_post_status() and the default filter for 5849 * {@see _future_post_hook()}. 5848 * wp_transition_post_status() and the default filter for _future_post_hook(). 5850 5849 * @param WP_Post $post Post object. 5851 5850 */
Note: See TracChangeset
for help on using the changeset viewer.