Skip to content

Instantly share code, notes, and snippets.

@wturnerharris
Created January 27, 2014 17:03
Show Gist options
  • Save wturnerharris/8652648 to your computer and use it in GitHub Desktop.
Save wturnerharris/8652648 to your computer and use it in GitHub Desktop.
Override/Remove call to dynamic css in LaunchEffect: add to end of functions.php in main theme. In order to retain the css options for both premium and lite versions of LaunchEffect, you should first save the output from the dynamic css to the server and add as a link href in the Additional Scripts option of Launch Effect. <link rel="stylesheet"…
<?php
function return_void(){
exit;
}
add_action('wp_ajax_dynamic_css', 'return_void', 5);
add_action('wp_ajax_nopriv_dynamic_css', 'return_void', 5);
add_action('wp_ajax_dynamic_css_premium', 'return_void', 5);
add_action('wp_ajax_nopriv_dynamic_css_premium', 'return_void', 5);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment