Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

166
Views
403 en la publicación ajax creando el complemento de Wordpress

Estoy creando un complemento en wordpress que necesita una llamada AJAX. La llamada pasa, pero obtengo un 403.

Revisé tutoriales y revisé otros códigos de complementos y no puedo entender por qué no funciona. Aparentemente, todas mis colas están bien.

Este es mi código de complemento main.php:

 function launchRecommender(){ wp_enqueue_style( 'ai-plugin-css', plugin_dir_url( __FILE__ ) . 'css/style.css'); wp_enqueue_script('ai-plugin-js', plugin_dir_url( __FILE__ ). 'js/index.js', array( 'jquery' )); wp_localize_script('ai-plugin-js', 'ia', array( 'pluginsUrl' => plugins_url() )); include('includes/recommender.php'); } add_shortcode('recomendador', 'launchRecommender');

Y este es el código JS que luego de ser ejecutado recibe el error 403:

 jQuery.ajax({ type: "POST", url: ia.pluginsUrl + "/plugin-name/includes/process.php", data: {student_email:'ex@ex.com'}, action: "", success: function(xml) { console.log(xml) }, error: function(e){ console.log(e) } })

¿Necesito un gancho adicional? ¿Está mal gestionada la url?

over 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!