set_post_format Wordpress function


Description:

Assign a format to a post


Syntax:


Arguments:

(int|object) $post The post for which to assign a format
(string) $format A format to assign. Use an empty string or array to remove all formats from the post.


Return Type:

(mixed) WP_Error on error. Array of affected term IDs on success.


Define At:

wp-includes/post.php


Wordpress Reference URL:

http://codex.wordpress.org/Function_Reference/set_post_format


0 Flares Facebook 0 Google+ 0 0 Flares ×
Posted in: Wordpress functions
0 Flares Facebook 0 Pin It Share 0 Google+ 0 0 Flares ×