Created
March 22, 2016 15:41
-
-
Save anonymous/28e63749d78a5de43ee4 to your computer and use it in GitHub Desktop.
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 | |
// Exit if accessed directly | |
if ( !defined( 'ABSPATH' ) ) exit; | |
// BEGIN ENQUEUE PARENT ACTION | |
// AUTO GENERATED - Do not modify or remove comment markers above or below: | |
if ( !function_exists( 'chld_thm_cfg_parent_css' ) ): | |
function chld_thm_cfg_parent_css() { | |
wp_enqueue_style( 'chld_thm_cfg_parent', trailingslashit( get_template_directory_uri() ) . 'style.css' ); | |
} | |
endif; | |
add_action( 'wp_enqueue_scripts', 'chld_thm_cfg_parent_css' ); | |
// END ENQUEUE PARENT ACTION | |
function ee_remove_category_options_from_dropdown() { | |
if(is_page('6801')){ | |
?> | |
<script> | |
jQuery(document).ready(function () { | |
jQuery("#ee_filter_cat option:contains(EPA RRP Initial)").remove(); | |
jQuery("#ee_filter_cat option:contains(EPA RRP Refresher)").remove(); | |
jQuery("#ee_filter_cat option:contains(Continuing Education)").remove(); | |
}); | |
</script> | |
<?php | |
} | |
if(is_page('4818')){ | |
?> | |
<script> | |
jQuery(document).ready(function () { | |
jQuery("#ee_filter_cat option:contains(EPA RRP Initial)").remove(); | |
jQuery("#ee_filter_cat option:contains(EPA RRP Refresher)").remove(); | |
jQuery("#ee_filter_cat option:contains(Continuing Education)").remove(); | |
}); | |
</script> | |
<?php | |
} | |
} | |
add_action( 'wp_footer', 'ee_remove_category_options_from_dropdown' ); | |
//* Replace verbiage on the events table view template for Event Espresso 4 | |
function ee_change_events_table_view_template_messaging( $translated, $original, $domain ) { | |
$strings = array( | |
'Category Filter' => ’Search by State’, | |
); | |
if ( isset( $strings[$original] ) ) { | |
$translations = &get_translations_for_domain( $domain ); | |
$translated = $translations->translate( $strings[$original] ); | |
} | |
return $translated; | |
} | |
add_filter( 'gettext', 'ee_change_events_table_view_template_messaging', 10, 3 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment