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 | |
/* | |
WordPress Theme Template Hierarchy Last updated for WordPress 5.4 | |
================================== | |
This diagram is partially simplified for legibility. To view the complete template hierarchy in use on your site see the | |
Template panel in the Query Monitor plugin. | |
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 | |
add_filter( 'genesis_build_crumbs', 'gj_wrap_last_breadcrumb', 10, 2 ); | |
/** | |
* Wrap the last Genesis breadcrumb in a span for styling. | |
* | |
* @author Gary Jones | |
* | |
* @param array $crumbs Existing HTML markup for the breadcrumbs. | |
* |
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 | |
// add ie conditional html5 shim to header | |
function _s_add_ie_html5_shim () { | |
echo '<!--[if lt IE 9]>'; | |
echo '<script src="' . get_template_directory_uri() . '/js/html5.js"></script>'; | |
echo '<![endif]-->'; | |
} | |
add_action('wp_head', '_s_add_ie_html5_shim'); |
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 | |
require_once __DIR__ . '/pluginception.php' | |
class ShoutPlugin { | |
use Pluginception; | |
function __construct() { | |
/* | |
* This method comes from the Pluginception trait, |
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 | |
class Yoast_GlotPress_SEO { | |
function __construct() { | |
add_filter( 'gp_title', array( $this, 'modify_title' ) ); | |
add_action( 'gp_head', array( $this, 'meta_desc' ), 9 ); | |
add_filter( 'gp_redirect_status', array( $this, 'modify_redirect_status' ), 10, 2 ); | |
} | |
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: Activation Plugin Example | |
Plugin URI: | |
Description: Adds an Activation Hook & Displays a notice after 10 days. | |
Author: Winwar Media | |
Version: 0.1-alpha | |
Author URI: http://winwar.co.uk/ | |
Text Domain: | |
Domain Path: |
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 | |
$globals = array( | |
'comment', | |
'comment_alt', | |
'comment_depth', | |
'comment_thread_alt', | |
'wp_rewrite', | |
'in_comment_loop', | |
'wp_query', |
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
filter: | |
excluded_paths: | |
- 'vendor/*' | |
- 'tests/*' | |
- 'src/wp-admin/includes/class-ftp*' | |
- src/wp-admin/includes/class-pclzip.php | |
- 'src/wp-content/*' | |
- 'src/wp-includes/ID3/*' | |
- 'src/wp-includes/SimplePie/*' | |
- 'src/wp-includes/Text/*' |
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
See https://github.com/cedaro/grunt-wp-css/blob/develop/tasks/config/default.json |
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: Fix Image Paths | |
Plugin URI: http://webdevstudios.com | |
Description: Plugin used to fix images that did not import properly in the MigrationService Plugin. | |
Author: WebDevStudios | |
Author URI: http://webdevstudios.com | |
Version: 1.0.0 | |
License: GPLv2 | |
*/ |