wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



wp_set_post_cats › WordPress Function

Da1.0.1
Deprecato2.1.0
wp_set_post_cats ( $blogid = '1', $post_id = 0, $post_categories = array() )
Parametri: (3)
  • (int) $blogid Not used
    Richiesto: No
    Default: '1'
  • (int) $post_id
    Richiesto: No
    Default:
  • (array) $post_categories
    Richiesto: No
    Default: array()
Vedi:
Ritorna:
  • (bool|mixed)
Definito a:
Codex:

Sets the categories that the post ID belongs to.



Sorgenti

function wp_set_post_cats($blogid = '1', $post_id = 0, $post_categories = array()) {
	_deprecated_function( __FUNCTION__, '2.1.0', 'wp_set_post_categories()' );
	return wp_set_post_categories($post_id, $post_categories);
}