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
| [ | |
| { | |
| "key": "group_59c02d79966e4", | |
| "title": "Tabbed Content", | |
| "fields": [ | |
| { | |
| "key": "field_59c02db106f90", | |
| "label": "Tabs", | |
| "name": "tabs", | |
| "type": "repeater", |
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 | |
| // Force the site title to use 'p' whenever an 'h1' would be used. | |
| add_filter( 'genesis_seo_title','prefix_force_p_site_title_wrap', 99, 3 ); | |
| function prefix_force_p_site_title_wrap( $title, $inside, $wrap ) { | |
| $title = str_replace( '<h1', '<p', $title ); | |
| $title = str_replace( '</h1>', '</p>', $title ); | |
| return $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 | |
| /** | |
| * Get the specified metadata value for the term or from | |
| * one of it's parent terms. | |
| * | |
| * @param WP_Term $term Term object | |
| * @param string $key The meta key to retrieve. | |
| * @param bool $check_enabled Whether to check if custom archive settings are enabled. | |
| * |
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 | |
| /** | |
| * Ignore WooCommerce Membership product restrictions when facets are used on Shop page. | |
| * | |
| * @uses FacetWP | |
| * @uses WooCommerce Memberships | |
| */ | |
| add_filter( 'facetwp_is_main_query', function( $is_main_query, $query ) { | |
| if ( 'wc_user_membership' == $query->get( 'post_type' ) ) { |