88 posts
  • Has been part of the Envato Community for over 1 year
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
QUAL says

Hello,

I was planning to use a distinct php file under /my-theme/ajax/my-ajax-file.php.

But AJAX in Plugins in Codex suggests to define AJAX calls with an add_action as follows:

add_action( 'admin_footer', 'my_action_javascript' );


According to the knowledgebase all Javascript should be in JS files. Using this method, is this against basic rules?

Thanks

88 posts
  • Has been part of the Envato Community for over 1 year
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
QUAL says

OK I found an answer for this issue. Wish there was a way to delete our first posts :)

by
by
by
by
by
by