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 | |
/* | |
* Dynamically Generated Checkboxes in a WordPress Settings Page | |
* | |
* This file is fully functional and ready to be used in a plugin or theme to generate this Settings Page | |
* | |
*/ | |
Class Pizza_Shop { |
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 | |
/** | |
* Strip out all shortcode content. | |
* | |
* This is a quick and dirty way | |
* to ensure no shortcodes introduce | |
* invalid markup into an amp template. | |
* | |
* @param string $content WP Post content. | |
* |
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
{"lastUpload":"2020-07-09T11:37:59.707Z","extensionVersion":"v3.4.3"} |
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
/* | |
* Plugin Header... | |
* | |
* Note: This particular block of code won't actually run because it doesn't have | |
* the details of the register_post_type and register_taxonomy functions filled in. | |
*/ | |
class JR3_Books { | |
/** |
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 | |
/** | |
* Hijack a hypothetical [podcast] custom shortcode for AMP. | |
* | |
* Replaces [podcast] output with amp-audio. | |
* | |
* Be sure you've added the amp-audio component script to the template. | |
* | |
* @filter the_content | |
* |
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 | |
/** | |
* Enqueue the Gutenberg editor stylesheet. | |
* | |
* Put this in your functions.php. | |
* | |
* @action enqueue_block_editor_assets | |
*/ | |
function jr3_enqueue_gutenberg() { | |
// Make sure you link this to your actual file. |
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 | |
/** | |
* Get Books posts. | |
* | |
* This is from a tutorial found here: | |
* @link https://johnregan3.wordpress.com/how-to-improve-wordpress-load-times-using-transients | |
* | |
* @since 1.0.0 | |
* | |
* @param array $genre_array An array of genre slugs. |
NewerOlder