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 candidate_import($continuation, $event_id, $event_name, $token){ | |
$log; | |
$log .= 'Event: '.$event_name.'<br />'; | |
//check if API call should be paginated and if so get the continuation key | |
if(empty($continuation)){ | |
//first page call |
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 shorts category from the blog **/ | |
add_filter( 'pre_get_posts', 'amber_exclude_shorts_category' ); | |
function amber_exclude_shorts_category ( $query ) { | |
if ( $query->is_home && ! is_admin() ) { | |
$query->set( 'cat', '-272' ); | |
} | |
return $query; | |
} |
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
function my_rule_type_filter($rules){ | |
$rules = edac_remove_element_with_value($rules, 'rule_type', 'warning'); // Removes all warnings | |
return $rules; | |
} | |
add_filter('edac_filter_register_rules','my_rule_type_filter'); |
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
function my_rule_filter($rules){ | |
$rules = edac_remove_element_with_value($rules, 'slug', 'slider_present'); // Replace the slug with the slug of the rule you want to remove. | |
return $rules; | |
} | |
add_filter('edac_filter_register_rules','my_rule_filter'); |
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
function change_max_alt_length( $max ) { | |
return 100; // Shorten alt text max character count to 100 from default (300). | |
} | |
add_filter( 'edac_max_alt_length', 'change_max_alt_length' ); |
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
/** | |
* Add scope attributes to table headers | |
* | |
* @param mixed $output HTML output of the table. | |
* @param mixed $table Table object. | |
* @param array $render_options Render options. | |
* @return string HTML output of the table. | |
*/ | |
function tablepress_add_scope( $output, $table, $render_options ) { | |
$dom = new DOMDocument(); |
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
/** Fix focus indicators **/ | |
.editor-styles-wrapper .wc-block-grid__products .wc-block-grid__product .wc-block-components-product-image a:focus, | |
.wc-block-components-product-image a:focus, | |
.wp-element-button:focus, | |
.wp-block-button__link:focus { | |
outline-style: solid; | |
outline-width: 2px; | |
outline-offset: 2px; | |
} |
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
<table> | |
<thead> | |
<tr> | |
<th scope="col">Video Creation & Editing Features</th> | |
<th scope="col">Free</th> | |
<th scope="col">Pro</th> | |
<th scope="col">Team</th> | |
<th scope="col">Enterprise</th> | |
</tr> | |
</thead> |
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
<div id="field_2_3" class="gfield gfield_contains_required field_sublabel_below field_description_above gfield_visibility_visible gsurvey-survey-field " data-field-class="gsurvey-survey-field"> | |
<label class="gfield_label">Were you satisfied with the overall TA or support you received? | |
<span class="gfield_required"> | |
<span class="gfield_required gfield_required_asterisk"> * <span class="sr-only"> Required</span> | |
</span></span> | |
</label> | |
<div class="ginput_container ginput_container_likert"> | |
<table class="gsurvey-likert" id="input_2_3"> | |
<thead> | |
<tr> |
NewerOlder