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 | |
| /** | |
| * Move All In One SEO (AIOSEO) metabox to bottom of the page. | |
| * Drop this in your functions.php file or wherever appropriate. | |
| * | |
| * @return string | |
| */ | |
| add_filter( 'aioseo_post_metabox_priority', function ($priority) { | |
| return 'low'; | |
| }); |
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 | |
| /** | |
| * Plugin Name: Disable Plugins | |
| * Plugin URI: https://gist.github.com/joshuafredrickson/949cc0eb19d8ca2d5d7c23d8d9134ff3 | |
| * Version: 1.0.0 | |
| * Description: Disable certain plugins in certain environments | |
| * Author: joshuafredrickson | |
| * Author URI: https://github.com/joshuafredrickson | |
| * License: GNU General Public License v2 | |
| * License URI: http://www.gnu.org/licenses/gpl-2.0.html |
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
| /** | |
| * Detect IE11 and open the current window in Edge instead | |
| */ | |
| if ( | |
| navigator.userAgent.indexOf('MSIE') !== -1 || | |
| navigator.appVersion.indexOf('Trident/') > -1 | |
| ) { | |
| // Redirect to Edge | |
| window.location = 'microsoft-edge:' + window.location.href; |
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
| <!-- WP uses `.alignwide` and `.alignfull` for wide and full-width blocks. --> | |
| <div class="wp-block-group alignwide"> | |
| <div class="wp-block-group__inner-container"> | |
| <div class="wp-block-columns"> | |
| <div class="wp-block-column"> | |
| <p>Paragraph text in a column.</p> | |
| </div> | |
| <div class="wp-block-column"> | |
| <p>The second column.</p> | |
| </div> |
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
| { | |
| "http-basic": { | |
| "satispress.domain.com": { | |
| "username": "<apikey>", | |
| "password": "satispress" | |
| } | |
| } | |
| } |
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 | |
| /** | |
| * Define a block template for a post type that includes a reusable block. | |
| * Find the reusable block ID at /wp-admin/edit.php?post_type=wp_block | |
| * | |
| * @return void | |
| */ | |
| add_action('init', function () { | |
| $post_type_object = get_post_type_object('page'); // Set the post type |
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
| query NODE_LIST_QUERY($first: Int!, $after: String) { | |
| posts(first: $first, after: $after, where: { parent: null }) { | |
| nodes { | |
| acfFeaturedImage { | |
| fieldGroupName | |
| scoutFeaturedImageOverride { | |
| id | |
| sourceUrl | |
| } | |
| scoutFeaturedImageShow |
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
| mkdir $HOME/bin; wget -O $HOME/bin/wp https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar && chmod +x $HOME/bin/wp && echo "export PATH=$HOME/bin:$PATH" | tee -a $HOME/.bashrc && source $HOME/.bashrc; wp --info |
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
| {{-- | |
| $image: ACF image field | |
| $images: \App\get_image_sizes($image_id) | |
| $class | |
| $alt | |
| $width: Optionally define how wide this image should be at different breakpoints | |
| --}} | |
| <picture class="acf-image {{ $class ?? '' }}"> | |
| <source 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
| <!-- wp:paragraph --> | |
| <p>Donec id elit non mi porta gravida at eget metus. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec ullamcorper nulla non metus auctor fringilla.</p> | |
| <!-- /wp:paragraph --> | |
| <!-- wp:more --> | |
| <!--more--> | |
| <!-- /wp:more --> | |
| <!-- wp:heading {"level":1} --> | |
| <h1>Heading One</h1> |