wpseek.com
Uma área de pesquisa sobre o WordPress para devs e autores do tema



wp_set_post_cats › WordPress Function

Desde1.0.1
Obsoleto2.1.0
wp_set_post_cats ( $blogid = '1', $post_id = 0, $post_categories = array() )
Parâmetros: (3)
  • (int) $blogid Not used
    Required: No
    Padrão: '1'
  • (int) $post_id
    Required: No
    Padrão:
  • (array) $post_categories
    Required: No
    Padrão: array()
Ver:
Retorna:
  • (bool|mixed)
Definido em:
Codex:

Sets the categories that the post ID belongs to.



Fonte

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);
}