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 | |
| // disable for posts | |
| add_filter('use_block_editor_for_post', '__return_false', 10); | |
| // disable for post types | |
| add_filter('use_block_editor_for_post_type', '__return_false', 10); |
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
| define('WP_HOME', 'http://{temporary-id}.ngrok.io/'); | |
| define('WP_SITEURL', 'http://{temporary-id}.ngrok.io/'); |
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
| @keyframes radial-pulse { | |
| 0% { | |
| box-shadow: 0 0 0 0px rgba(0, 0, 0, 0.5); | |
| } | |
| 100% { | |
| box-shadow: 0 0 0 30px rgba(0, 0, 0, 0); | |
| } | |
| } |
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
| @import "vars" | |
| /*========== Desktop First ==========*/ | |
| /* Large Devices, Wide Screens */ | |
| @media only screen and (max-width : 1200px) | |
| /**/ | |
| /* Medium Devices, Desktops */ |
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
| var numbers = [12, 3, 7, 9, 10, 5]; | |
| for (var i = 0; i <= numbers.length - 2; i++) { | |
| var minValue = numbers[i]; | |
| for (var j = i + 1; j <= numbers.length - 1; j++) { | |
| if (numbers[j] < minValue) { | |
| minValue = numbers[j]; | |
| var swap = numbers[i]; | |
| numbers[i] = minValue; |
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
| REMOVE GENERATOR VERSION NUMBER |
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
| body:after { | |
| content: | |
| url('https://www.atlex.ru/wp-content/uploads/2018/04/who-are-you-in-the-world-of-hosting-inactive.png') | |
| url('https://www.atlex.ru/wp-content/uploads/2018/04/who-are-you-in-the-world-of-hosting-active-lady.png') | |
| url('https://www.atlex.ru/wp-content/uploads/2018/04/who-are-you-in-the-world-of-hosting-active-gentlemen.png'); | |
| display: none; | |
| } |
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
| .overlay | |
| position: relative | |
| &::after | |
| content: "" | |
| position: absolute | |
| top: 0 | |
| bottom: 0 | |
| left: 0 | |
| right: 0 | |
| background: rgba(0, 0, 0, .5) |
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 debug($arr) { | |
| echo '<pre>' . print_r($arr, true) . '</pre>'; | |
| } |
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 | |
| function mass_update_posts() { | |
| $args = array( //whatever post type you need to update | |
| 'posts_per_page' => -1); | |
| $my_posts = get_posts($args); | |
| foreach($my_posts as $key => $my_post){ | |
| $meta_values = get_post_meta( $my_post->ID); |