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
| DELETE FROM wp_options WHERE option_name LIKE "%swift_performance%" |
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 | |
| $product = new WC_Product( get_the_ID() ); // in function.php maybe... | |
| if( $product->is_type( 'simple' ) ){ | |
| // a simple product | |
| } elseif( $product->is_type( 'variable' ) ){ |
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
| $send_time_rs = get_the_time('c'); | |
| $updated_time_rs = get_the_modified_time('c'); | |
| echo '<time class="published" style="display: none;" datetime="'; | |
| echo $send_time_rs; | |
| echo '">'; | |
| echo $send_time_rs; | |
| echo '</time> '; | |
| if($send_time_rs!==$updated_time_rs) { |
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
| function ssl_srcset( $sources ) { | |
| foreach ( $sources as &$source ) { | |
| $source['url'] = set_url_scheme( $source['url'], 'https' ); | |
| } | |
| return $sources; | |
| } | |
| add_filter( 'wp_calculate_image_srcset', 'ssl_srcset' ); |
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
| add_filter( 'wp_calculate_image_srcset_meta', '__return_null' ); | |
| echo get_the_post_thumbnail( $page->ID, 'large' ); | |
| remove_filter( 'wp_calculate_image_srcset_meta', '__return_null' ); |
NewerOlder