Created
July 4, 2017 09:39
-
-
Save shrimp2t/880826afb287349c099c442ef94de5b9 to your computer and use it in GitHub Desktop.
Enable Auto store thumbnail
This file contains 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 /* | |
Plugin Name: Enable Auto store thumbnail | |
Version: 1.0.0 | |
*/ | |
$stores = get_terms( array( | |
'taxonomy' => 'coupon_store', | |
'hide_empty' => false, | |
) ); | |
foreach ( $stores as $t ) { | |
update_term_meta( $t->term_id, '_wpc_auto_thumbnail', 1 ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment