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 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 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' ) ) { |
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
/* Pricing Table | |
--------------------------------------------- */ | |
.pricing-table { | |
box-sizing: border-box; | |
display: -webkit-flex;display: -ms-flexbox;display: flex; | |
-webkit-flex: 0 1 auto;-ms-flex: 0 1 auto;flex: 0 1 auto; | |
-webkit-flex-wrap: wrap;-ms-flex-wrap: wrap;flex-wrap: wrap; | |
-webkit-flex-direction: row;-ms-flex-direction: row;flex-direction: row; | |
-webkit-justify-content: space-between;-ms-flex-pack: justify;justify-content: space-between; |
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 | |
/** | |
* Filter WP 'Edit Post' link to go to front end /edit-post/ page | |
* | |
* @author Mike Hemberger | |
* @link http://thestizmedia.com/front-end-post-editing-with-caldera-forms/ | |
* @return string url to front end for with query arg source post ID ( ?post_id=123 ) | |
*/ | |
add_filter( 'get_edit_post_link', 'tsm_edit_post_link', 10, 1 ); |
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 | |
/** | |
* Add a custom 'Edit Post' link on posts the logged in user authored | |
* Links to a separate page with ?post_id=123 query string | |
* Uses tsm_is_current_users_post( $post_id ) helper function | |
* | |
* @author Mike Hemberger | |
* @link http://thestizmedia.com/front-end-post-editing-with-caldera-forms/ | |
* @return bool/string false or edit post link |