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 | |
//* Do NOT include the opening php tag | |
//* Replace Select One in dropdown menu with No | |
function ee_rename_select_one() { | |
?> | |
<script type="text/javascript"> | |
jQuery(document).ready(function () { | |
jQuery(".event_form_field").html(function(i,t){ | |
return t.replace('Select One','No'); |
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 | |
//* Do NOT include the opening php tag | |
//* Replace empty cart messaging with something else | |
function ee_empty_cart_messaging($content) | |
{ | |
$content = str_replace('It looks like you are attempting to refresh a page after completing your registration or your cart is empty. Please go to the events page and try again.', 'Your cart is empty.',$content); | |
return $content; | |
} | |
add_filter('the_content','ee_empty_cart_messaging', 200); |
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 | |
//* Do NOT include the opening php tag | |
//* Remove the zero option in dropdown and set default to 1 | |
function ee_remove_zero_from_dropdown() { | |
?> | |
<script>jQuery(document).ready(function(){ | |
jQuery(".price_id").val(1); | |
jQuery('#event_espresso_refresh_total').trigger('click'); |
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 | |
//* Do NOT include the opening php tag | |
function ee_replace_register_test_buy_tickets( $translated, $original, $domain ) { | |
$strings = array( | |
'Register' => 'Buy Tickets', | |
); | |
if ( isset( $strings[$original] ) ) { | |
$translations = get_translations_for_domain( $domain ); |
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 | |
//* Do NOT include the opening php tag | |
function ee_remove_category_options_from_dropdown() { | |
if(is_page('12')){ | |
?> | |
<script> | |
jQuery(document).ready(function () { | |
jQuery("#ee_filter_cat option:contains(Optimist Lanzarote)").remove(); | |
}); |
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
<p><iframe width="420" height="315" src="//www.youtube.com/embed/dQw4w9WgXcQ" frameborder="0" allowfullscreen></iframe></p> |
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
UPDATE `yourdatabasename`.`dbprefix_events_question` SET `wp_user` = '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 | |
/* | |
Plugin Name: Update jQuery Cherry framework | |
Description: Deactivate jQuery that is included with Cherry framework and request a compatible version for WordPress from the Google CDN | |
*/ | |
/* Begin Adding Functions Below This Line */ | |
// Remove themes old version of jQuery and load a compatible version | |
add_action('wp_enqueue_scripts', 'update_jquery_for_cherry_framework', 11); | |
function update_jquery_for_cherry_framework() { |
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
UPDATE `yourdatabasename`.`dbprefix_events_qst_group` SET `wp_user` = '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
SET @initialposition = 0; | |
UPDATE `wp_redirection_items` set `position` = (@initialposition:=@initialposition+1) | |
ORDER BY `url` ASC |