103 posts
  • 3 Years of Membership
  • Author Level 2
  • Collector Level 3
  • Exclusive Author
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

103 posts
  • 3 Years of Membership
  • Author Level 2
  • Collector Level 3
  • Exclusive Author
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