Skip to content

Instantly share code, notes, and snippets.

@MZAWeb
Created February 17, 2017 20:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MZAWeb/27e3208693e30dba4cadd0b88d81795f to your computer and use it in GitHub Desktop.
Save MZAWeb/27e3208693e30dba4cadd0b88d81795f to your computer and use it in GitHub Desktop.
add_action( 'wp_ajax_' . $_GET['action'], 'wp_ajax_' . str_replace( '-', '_', $_GET['action'] ), 1 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment