Changeset 49693 for trunk/src/wp-includes/post.php
- Timestamp:
- 11/24/2020 09:25:46 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post.php
r49692 r49693 1308 1308 * @type string $label Name of the post type shown in the menu. Usually plural. 1309 1309 * Default is value of $labels['name']. 1310 * @type array$labels An array of labels for this post type. If not set, post1310 * @type string[] $labels An array of labels for this post type. If not set, post 1311 1311 * labels are inherited for non-hierarchical types and page 1312 1312 * labels for hierarchical ones. See get_post_type_labels() for a full … … 1357 1357 * this argument as a base to construct the capabilities, e.g. 1358 1358 * array('story', 'stories'). Default 'post'. 1359 * @type array$capabilities Array of capabilities for this post type. $capability_type is used1359 * @type string[] $capabilities Array of capabilities for this post type. $capability_type is used 1360 1360 * as a base to construct capabilities by default. 1361 1361 * See get_post_type_capabilities(). … … 1376 1376 * edit form. Do remove_meta_box() and add_meta_box() calls in the 1377 1377 * callback. Default null. 1378 * @type array$taxonomies An array of taxonomy identifiers that will be registered for the1378 * @type string[] $taxonomies An array of taxonomy identifiers that will be registered for the 1379 1379 * post type. Taxonomies can be registered later with register_taxonomy() 1380 1380 * or register_taxonomy_for_object_type(). … … 2723 2723 * @global wpdb $wpdb WordPress database abstraction object. 2724 2724 * 2725 * @param string| array$mime_type Optional. Array or comma-separated list of2726 * MIME patterns. Default empty.2725 * @param string|string[] $mime_type Optional. Array or comma-separated list of 2726 * MIME patterns. Default empty. 2727 2727 * @return object An object containing the attachment counts by mime type. 2728 2728 */ … … 2864 2864 * @since 2.5.0 2865 2865 * 2866 * @param string| array$wildcard_mime_types Mime types, e.g. audio/mpeg or image (same as image/*)2867 * or flash (same as *flash*).2868 * @param string| array$real_mime_types Real post mime type values.2866 * @param string|string[] $wildcard_mime_types Mime types, e.g. audio/mpeg or image (same as image/*) 2867 * or flash (same as *flash*). 2868 * @param string|string[] $real_mime_types Real post mime type values. 2869 2869 * @return array array(wildcard=>array(real types)). 2870 2870 */ … … 2916 2916 * @since 2.5.0 2917 2917 * 2918 * @param string| array$post_mime_types List of mime types or comma separated string2919 * of mime types.2920 * @param string $table_alias Optional. Specify a table alias, if needed.2921 * Default empty.2918 * @param string|string[] $post_mime_types List of mime types or comma separated string 2919 * of mime types. 2920 * @param string $table_alias Optional. Specify a table alias, if needed. 2921 * Default empty. 2922 2922 * @return string The SQL AND clause for mime searching. 2923 2923 */ … … 3521 3521 * @since 2.8.0 3522 3522 * 3523 * @param int $post_id Optional. The Post ID. Does not default to the ID of the3524 * global $post. Default 0.3525 * @param string| array$taxonomy Optional. The taxonomy slug or array of slugs for which3526 * to retrieve terms. Default 'post_tag'.3527 * @param array $args {3523 * @param int $post_id Optional. The Post ID. Does not default to the ID of the 3524 * global $post. Default 0. 3525 * @param string|string[] $taxonomy Optional. The taxonomy slug or array of slugs for which 3526 * to retrieve terms. Default 'post_tag'. 3527 * @param array $args { 3528 3528 * Optional. Term query parameters. See WP_Term_Query::__construct() for supported arguments. 3529 3529 *
Note: See TracChangeset
for help on using the changeset viewer.