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
// Remove WooCommerce Theme Support admin message | |
add_theme_support( 'woocommerce' ); |
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
/* ## Gravity Forms | |
--------------------------------------------- */ | |
.gform_heading, | |
.gform_body, | |
.gform_footer { | |
clear: both; | |
} | |
.gform_heading { |
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 | |
$args = array( | |
'label' => '', // Text in Label | |
'class' => '', | |
'style' => '', | |
'wrapper_class' => '', | |
'value' => '', // if empty, retrieved from post meta where id is the meta_key | |
'id' => '', // required | |
'name' => '', //name will set from id if empty |
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
/** | |
* Remove the "nofollow" attribute from all comments author's links | |
* except for a specific author. | |
*/ | |
function dofollow_blog_author_comment( $return, $author ) { | |
if ( $author === 'Your Name' ) { | |
$return = str_replace( "rel='external nofollow ugc'", '', $return ); | |
} | |
return $return; |
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 | |
// Safely Remove CPT slugs from your CPT permalinks. | |
// Note: Replace CPT_NAME with your CPT name. | |
/** | |
* Remove the slug from published post permalinks. Only affect our custom post type, though. | |
*/ | |
function m3_remove_cpt_slug( $post_link, $post ) { | |
if ( 'CPT_NAME' === $post->post_type && 'publish' === $post->post_status ) { |
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 | |
/** | |
* LearnDash filter to prevent converting answer values to lowercase | |
* | |
* @possibly use ld_adv_quiz_pro_ajax() | |
* @uses stripslashes( strtolower( trim( $userResponse ) ) ) Default | |
* @since 1.0 | |
* @from WpProQuiz_View_FrontQuiz.php | |
* post_type=sfwd-quiz | |
*/ |
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 | |
function filter_input_object($input_object, $sfid) | |
{ | |
//ensure we are only filtering the correct field name - in this case the field we want to filter has the name `_sfm_colours` | |
//we also want to make sure its a `select` input type we're filtering | |
if(($input_object['name']!='_sfm_colours')||($input_object['type']!='select')) | |
{ | |
return $input_object; | |
} | |
OlderNewer