Created
September 26, 2019 09:00
-
-
Save MjHead/6752077efb52c44cfacd66ecb97f913f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action( 'wp_loaded', function() { | |
$query = new WP_Query( array( | |
'post_type' => 'jet-engine', | |
'posts_per_page' => -1, | |
) ); | |
if ( ! empty( $query->posts ) ) { | |
foreach( $query->posts as $post ) { | |
update_post_meta( $post->ID, '_elementor_template_type', 'jet-listing-items' ); | |
} | |
} | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment