set_post_format
set_post_format ( $post, $format )
Parameters:- (int|WP_Post) 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.
Returns:- (array|WP_Error|false) Array of affected term IDs on success. WP_Error on error.
Defined at: - Introduced in WordPress: 3.1.0
- Deprecated in WordPress: —
Description
Assign a format to a post