Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function custom_set_post_format_video( $post_id ) {
- if ( get_post_meta( $post_id, 'video', true ) ) {
- set_post_format( $post_id, 'video' );
- }
- }
- add_action( 'fes_submit_submission_form_bottom', 'custom_set_post_format_video' );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement