wp_set_post_cats [ WordPress Function ]
wp_set_post_cats ( $blogid = '1', $post_ID = 0, $post_categories = array() )
| Parameters: |
|
| See: | |
| Returns: |
|
| Defined at: |
|
Similar Functions: wp_get_post_cats, wp_set_post_tags, wp_set_post_terms, wp_set_post_categories, wp_set_post_lock
Sets the categories that the post id belongs to.
Examples [ wp-snippets.com ]
Top Google Search Results
- php /**** DB Functions ****/ /* * generic function - WordPress SVN
result ) $result = array(); return array_unique($result); } function wp_set_post_cats($blogid = '1', $post_ID = 0, $post_categories = array()) { global $wpdb; ...
core.svn.wordpress.org - <?php /**** DB Functions ****/ /* * generic function for inserting data ...
WHERE ID = '$post_ID'"); wp_set_post_cats('', $post_ID, $post_category); ... return array_unique($result); } function wp_set_post_cats($blogid = '1', $post_ID ...
core.svn.wordpress.org - php /**** DB Functions ****/ /* * generic function - WordPress SVN
<?php /**** DB Functions ****/ /* * generic function for inserting data into the posts table. */ function wp_insert_post($postarr = array()) { global $wpdb, ...
core.svn.wordpress.org - php /**** DB Functions ****/ /* * generic function for inserting data
result ) $result = array(); return array_unique($result); } function wp_set_post_cats($blogid = '1', $post_ID = 0, $post_categories = array()) { global $wpdb; ...
svn.wph.co.il