CodeExplorer handle_template example
if ( !
empty( $schema['properties'
]['featured_media'
] ) &&
isset( $request['featured_media'
] ) ) { $this->
handle_featured_media( $request['featured_media'
],
$post_id );
} if ( !
empty( $schema['properties'
]['format'
] ) && !
empty( $request['format'
] ) ) { set_post_format( $post,
$request['format'
] );
} if ( !
empty( $schema['properties'
]['template'
] ) &&
isset( $request['template'
] ) ) { $this->
handle_template( $request['template'
],
$post_id, true
);
} $terms_update =
$this->
handle_terms( $post_id,
$request );
if ( is_wp_error( $terms_update ) ) { return $terms_update;
} if ( !
empty( $schema['properties'
]['meta'
] ) &&
isset( $request['meta'
] ) ) { $meta_update =
$this->meta->
update_value( $request['meta'
],
$post_id );