Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




wp_set_post_cats [ WordPress Function ]

wp_set_post_cats ( $blogid = '1', $post_ID = 0, $post_categories = array() )
Parameters:
  • (int) $blogid Not used
  • (int) $post_ID
  • (array) $post_categories
See:
Returns:
  • (unknown)
Defined at:



Sets the categories that the post id belongs to.

Source


<?php
function wp_set_post_cats($blogid '1'$post_ID 0$post_categories = array()) {
    
_deprecated_function__FUNCTION__'2.1''wp_set_post_categories()' );
    return 
wp_set_post_categories($post_ID$post_categories);
}
?>

Examples [ wp-snippets.com ]

Top Google Search Results

More ...

User discussions [ wordpress.org ]

0 User Note(s)

None yet. Be the first!

Add New ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics