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:core-embed/youtube {"url":"https://www.youtube.com/watch?v=2WGr69m-RB8","type":"video","providerNameSlug":"youtube","className":"wp-embed-aspect-16-9 wp-has-aspect-ratio"} --> | |
<figure class="wp-block-embed-youtube wp-block-embed is-type-video is-provider-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio"><div class="wp-block-embed__wrapper"> | |
https://www.youtube.com/watch?v=2WGr69m-RB8 | |
</div></figure> | |
<!-- /wp:core-embed/youtube --> | |
<!-- wp:core-embed/wordpress {"url":"https://support.wistia.com/medias/h1z3uqsjal","type":"wp-embed","providerNameSlug":"wistia-inc","className":""} --> | |
<figure class="wp-block-embed-wordpress wp-block-embed is-type-wp-embed is-provider-wistia-inc"><div class="wp-block-embed__wrapper"> | |
https://support.wistia.com/medias/h1z3uqsjal | |
</div></figure> |
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 _s_remove_archive_title_prefix( $title ) { | |
// Get the single category title with no prefix. | |
$single_cat_title = single_term_title( '', false ); | |
if ( is_category() || is_tag() || is_tax() ) { | |
return esc_html( $single_cat_title ); | |
} |
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 | |
/** | |
* The template used for displaying a CTA block. | |
* | |
* @package _s | |
*/ | |
// Set up fields. | |
$title = get_sub_field( 'title' ); | |
$text = get_sub_field( '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
"WDS jQuery Block": { | |
"prefix": "jq", | |
"body": [ | |
"/**", | |
" * ${1:Name File} Script.", | |
" */", | |
"window.WDS${2:Name Object}Object = {};", | |
"( function( window, \\$, app ) {", | |
"", | |
" // Constructor.", |
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
"Section Comment": { | |
"prefix": "element comment", | |
"body": [ | |
"//-----------------------------------------", | |
"// ${1:partial section comment}", | |
"//-----------------------------------------", | |
"$0" | |
], | |
"description": "Partial Section Comment Block" | |
} |
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_die": { | |
"prefix": "die", | |
"body": [ | |
"wp_die( '<pre>'. htmlentities( print_r( ${1:foo}, true ) ) .'</pre>' );", | |
], | |
"description": "invoke wp_die()" | |
}, |
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
/** | |
* Set the attributes to be displayed in the Background Options panel. | |
* @type {Object} | |
*/ | |
const BackgroundOptionsAttributes = { | |
backgroundType: { | |
type: 'string', | |
}, | |
backgroundImage: { |
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
/** | |
* BLOCK: Default Block | |
* | |
* This block was meant to be duplicated. | |
* It serves as the starting point for new blocks. 😀 | |
*/ | |
/** | |
* External dependencies | |
*/ |
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
/** | |
* BLOCK: Default Block | |
* | |
* This block was meant to be duplicated. | |
* It serves as the starting point for new blocks. 😀 | |
*/ | |
/** | |
* External dependencies | |
*/ |
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 cmc_remove_wp_core_version_numbers( $src ) { | |
$src = remove_query_arg( 'ver', $src ); | |
return $src; | |
} | |
add_filter( 'style_loader_src', 'cmc_remove_wp_core_version_numbers', 9999 ); | |
add_filter( 'script_loader_src', 'cmc_remove_wp_core_version_numbers', 9999 ); |
NewerOlder