set_post_format


set_post_format ( $post, $format )

Parameters:
  • (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.
Returns:
  • (array|WP_Error|false) Array of affected term IDs on success. WP_Error on error.
Defined at:

Description

Assign a format to a post

Related Functions

get_post_format, has_post_format, get_post_format_link, get_post_format_slugs, get_post_format_string

Top Google Results

User discussions

wpseek mobile