{"id":9677,"date":"2022-03-27T13:23:08","date_gmt":"2022-03-27T11:23:08","guid":{"rendered":"https:\/\/geehootek.com\/how-to-avoid-admin-ajax-php-400-bad-request-error-when-trying-to-use-ajax-in-wordpress-plugin-hu\/"},"modified":"2022-12-10T12:49:54","modified_gmt":"2022-12-10T11:49:54","slug":"how-to-avoid-admin-ajax-php-400-bad-request-error-when-trying-to-use-ajax-in-wordpress-plugin-hu","status":"publish","type":"post","link":"https:\/\/geehootek.com\/hu\/how-to-avoid-admin-ajax-php-400-bad-request-error-when-trying-to-use-ajax-in-wordpress-plugin-hu\/","title":{"rendered":"Hogyan lehet elker\u00fclni az admin-ajax.php 400 rossz k\u00e9r\u00e9s hib\u00e1j\u00e1t, amikor az ajaxot pr\u00f3b\u00e1lja haszn\u00e1lni a WordPress be\u00e9p\u00fcl\u0151 modulj\u00e1ban"},"content":{"rendered":"\n<p>Amikor az ajax technich-et pr\u00f3b\u00e1lja haszn\u00e1lni a wordpress be\u00e9p\u00fcl\u0151 modulok fejleszt\u00e9s\u00e9ben, van n\u00e9mi elt\u00e9r\u00e9s a norm\u00e1l m\u00f3dt\u00f3l. Nagyon r\u00e9g\u00f3ta dolgozom \u00e9s keresg\u00e9lek rajta, nagyon neh\u00e9z egyetlen bejegyz\u00e9st \u00f6sszegy\u0171jteni, hogy egy\u00e9rtelm\u0171v\u00e9 tegyem. Teh\u00e1t itt megpr\u00f3b\u00e1lok jobb magyar\u00e1zatot adni ennek minden kulcsfontoss\u00e1g\u00fa pontj\u00e1r\u00f3l.<\/p>\n\n<p>Mivel az ajax haszn\u00e1lat\u00e1nak m\u00f3dja a wordpress h\u00e1tt\u00e9rben elt\u00e9r el\u0151t\u00e9rben \u00e9s h\u00e1tt\u00e9rben, k\u00f6nnyebb. A t\u00e9m\u00e1t csak az el\u0151t\u00e9rre fogom \u00f6sszpontos\u00edtani.<\/p>\n\n<p>Miel\u0151tt elolvasn\u00e1 ezt a cikket, k\u00e9rj\u00fck, gy\u0151z\u0151dj\u00f6n meg arr\u00f3l, hogy rendelkezik a WordPress be\u00e9p\u00fcl\u0151 modulok fejleszt\u00e9s\u00e9vel, ajax-szal, php-vel stb. kapcsolatos alapvet\u0151 ismeretekkel, hogy ne vesztegesse az idej\u00e9t az elolvas\u00e1s\u00e1ra, \u00e9s ne kapjon seg\u00edts\u00e9get.<\/p>\n\n<p>Remek, kezdj\u00fck.<\/p>\n\n<h2 class=\"wp-block-heading\">Kulcspont 1<\/h2>\n\n<p>Ha van egy k\u00fcl\u00f6n JavaScript-f\u00e1jlja , tegy\u00fck fel, hogy a f\u00e1jl a js\/your_ajax_script.js a be\u00e9p\u00fcl\u0151 modul mapp\u00e1j\u00e1ban, akkor el\u0151sz\u00f6r gy\u0151z\u0151dj\u00f6n meg arr\u00f3l, hogy a \u00a0wp_enqueue_script() seg\u00edts\u00e9g\u00e9vel tartalmazza ezt a szkriptet. majd a wp_localize_script() seg\u00edts\u00e9g\u00e9vel hozzon l\u00e9tre egy ajax_objectet a tov\u00e1bbi haszn\u00e1latra.<\/p>\n\n<pre class=\"wp-block-code\"><code>add_action( 'wp_enqueue_scripts', array($this, 'enqueue_frontend_script') );\n\nfunction enqueue_frontend_script(){\n        wp_enqueue_script( 'ajax-script', <strong>PLUGIN_URL <\/strong>. 'js\/your-ajax-script.js', array('jquery') );\n        wp_localize_script( 'ajax-script', '<strong>your_ajax_object<\/strong>', array( 'ajax_url' =&gt; <strong>admin_url( 'admin-ajax.php' )<\/strong> ) );\n}<\/code><\/pre>\n\n<p>A PLUGIN_URL egy konst, amely a be\u00e9p\u00fcl\u0151 modul URL-c\u00edm\u00e9re hivatkozik, a your_ajax_object az ajax_object neve, tetsz\u00e9s szerint nevezheti el. Az array(&#8216;ajax_url&#8217; =&gt; admin_url(&#8216;admin-ajax.php&#8217;) a your_ajax_object ajax_url tulajdons\u00e1g\u00e1nak defin\u00edci\u00f3ja. Gy\u0151z\u0151dj\u00f6n meg arr\u00f3l, hogy nincsenek el\u00edr\u00e1si hib\u00e1k az admin_url(&#8216;admin-ajax.php&#8217; )<\/p>\n\n<h2 class=\"wp-block-heading\">Kulcspont 2<\/h2>\n\n<p>N\u00e9zz\u00fck el\u0151sz\u00f6r a forgat\u00f3k\u00f6nyvet.<\/p>\n\n<pre class=\"wp-block-code\"><code>jQuery(document).ready(function($){\n    $('.btn_del_row').click(function(){\n        var id = $(this).data('id');\n        var confirmalert = confirm(\"Are you sure ?\");\n        if (confirmalert == true) {\n            var <strong>data <\/strong>= {\n                'action': '<strong>your_ajax_action<\/strong>',\n                'id'    : id,\n            };\n            jQuery.post( <strong>your_ajax_object<\/strong>.<strong>ajax_url<\/strong>, <strong>data<\/strong>, function(response){\n                alert('Got this from the server: ' + response);\n            });\n        }\n    });\n});<\/code><\/pre>\n\n<p>Ebben a javascriptben gy\u0151z\u0151dj\u00f6n meg arr\u00f3l, hogy a megadott ajax_object-et \u00e9s annak tulajdons\u00e1g\u00e1t haszn\u00e1lja, eset\u00fcnkben ez a your_ajax_object.ajax_url.<\/p>\n\n<p>A m\u0171velethez k\u00fcld\u00f6tt adatokban meg kell eml\u00edteni a m\u0171velet nev\u00e9t , eset\u00fcnkben ez az &#8216;action&#8217; illat: &#8216;your_ajax_action&#8217;, ezt a m\u0171velet nev\u00e9t tetsz\u00e9s szerint nevezheti el, de ne feledje, hogy a pontosan ugyanazt a nevet, ahol sz\u00fcks\u00e9g van r\u00e1. Megl\u00e1tod.<\/p>\n\n<h2 class=\"wp-block-heading\">Kulcspont 3<\/h2>\n\n<p>Kapcsolja be a m\u0171veleti funkci\u00f3t a bejelentkezett \u00e9s a bejelentkezett felhaszn\u00e1l\u00f3k sz\u00e1m\u00e1ra.<\/p>\n\n<pre class=\"wp-block-code\"><code>add_action( 'wp_ajax_<strong>your_ajax_action<\/strong>', '<strong>your_ajax_action<\/strong>' );\nadd_action( 'wp_ajax_nopriv_<strong>your_ajax_action<\/strong>', '<strong>your_ajax_action<\/strong>' );\n\nfunction <strong>your_ajax_action<\/strong> (){\n    global $wpdb;\n    $id = $_POST&#091;'id'];\n    \/\/ do something you like ...\n    echo $result;\n    <strong>wp_die();<\/strong>\n}<\/code><\/pre>\n\n<p>Tekintse meg a fenti k\u00f3dot, rem\u00e9lem \u00e9szrevette, hogy 5 helyen ugyanazt a sz\u00f3t haszn\u00e1lja, mint a &#8222;your_ajax_action&#8221;, amely a javascript k\u00f3dban van meghat\u00e1rozva. ennek pontosan ugyanannak kell lennie, k\u00fcl\u00f6nben nem fog m\u0171k\u00f6dni.<\/p>\n\n<p>A php f\u00fcggv\u00e9ny v\u00e9g\u00e9n ne felejtsd el bez\u00e1rni a wp_die();<\/p>\n\n<p>Az ajax haszn\u00e1lata a wordpress be\u00e9p\u00fcl\u0151 modulban kiss\u00e9 bosszant\u00f3, de rem\u00e9lem, sikeres lesz, miut\u00e1n k\u00f6veti a magyar\u00e1zatomat.<\/p>\n\t\t\t<link rel=\"stylesheet\" id=\"elementor-post-9535-css\" href=\"https:\/\/geehootek.com\/wp-content\/uploads\/elementor\/css\/post-9535.css?ver=1772510603\" type=\"text\/css\" media=\"all\">\n\t\t\t\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"9535\" class=\"elementor elementor-9535 elementor-1911\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-fa4a365 elementor-section-full_width elementor-section-content-middle elementor-section-height-default elementor-section-height-default wd-section-disabled\" data-id=\"fa4a365\" data-element_type=\"section\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-66 elementor-top-column elementor-element elementor-element-15d7811\" data-id=\"15d7811\" data-element_type=\"column\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-73bbe0e elementor-widget elementor-widget-wd_title\" data-id=\"73bbe0e\" data-element_type=\"widget\" data-widget_type=\"wd_title.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"title-wrapper set-mb-s reset-last-child wd-title-color-default wd-title-style-default wd-title-size-small text-left\">\n\n\t\t\t\n\t\t\t<div class=\"liner-continer\">\n\t\t\t\t<h4 class=\"woodmart-title-container title wd-fontsize-m\">K\u00fcldj\u00f6n \u00fczenetet nek\u00fcnk<\/h4> \n\t\t\t\t\t\t\t<\/div>\n\n\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-54f3057 elementor-widget elementor-widget-wd_contact_form_7\" data-id=\"54f3057\" data-element_type=\"widget\" data-widget_type=\"wd_contact_form_7.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\n<div class=\"wpcf7 no-js\" id=\"wpcf7-f9525-o1\" lang=\"en-US\" dir=\"ltr\" data-wpcf7-id=\"9525\">\n<div class=\"screen-reader-response\"><p role=\"status\" aria-live=\"polite\" aria-atomic=\"true\"><\/p> <ul><\/ul><\/div>\n<form action=\"\/hu\/wp-json\/wp\/v2\/posts\/9677#wpcf7-f9525-o1\" method=\"post\" class=\"wpcf7-form init wd-style-with-bg\" aria-label=\"Contact form\" novalidate=\"novalidate\" data-status=\"init\">\n<fieldset class=\"hidden-fields-container\"><input type=\"hidden\" name=\"_wpcf7\" value=\"9525\" \/><input type=\"hidden\" name=\"_wpcf7_version\" value=\"6.1.4\" \/><input type=\"hidden\" name=\"_wpcf7_locale\" value=\"en_US\" \/><input type=\"hidden\" name=\"_wpcf7_unit_tag\" value=\"wpcf7-f9525-o1\" \/><input type=\"hidden\" name=\"_wpcf7_container_post\" value=\"0\" \/><input type=\"hidden\" name=\"_wpcf7_posted_data_hash\" value=\"\" \/><input type=\"hidden\" name=\"_wpcf7_recaptcha_response\" value=\"\" \/>\n<\/fieldset>\n<div class=\"row wd-spacing-20\">\n\t<p class=\"col-lg-6\"><span class=\"wpcf7-form-control-wrap\" data-name=\"your-name\"><input size=\"40\" maxlength=\"400\" class=\"wpcf7-form-control wpcf7-text wpcf7-validates-as-required\" aria-required=\"true\" aria-invalid=\"false\" placeholder=\"Az \u00f6n neve\" value=\"\" type=\"text\" name=\"your-name\" \/><\/span>\n\t<\/p>\n\t<p class=\"col-lg-6\"><span class=\"wpcf7-form-control-wrap\" data-name=\"your-email\"><input size=\"40\" maxlength=\"400\" class=\"wpcf7-form-control wpcf7-email wpcf7-validates-as-required wpcf7-text wpcf7-validates-as-email\" aria-required=\"true\" aria-invalid=\"false\" placeholder=\"Az \u00f6n Emailje (k\u00f6telez\u0151)\" value=\"\" type=\"email\" name=\"your-email\" \/><\/span>\n\t<\/p>\n\t<p class=\"col-lg-12\"><span class=\"wpcf7-form-control-wrap\" data-name=\"your-sms\"><input size=\"40\" maxlength=\"400\" class=\"wpcf7-form-control wpcf7-tel wpcf7-text wpcf7-validates-as-tel\" aria-invalid=\"false\" placeholder=\"Telefon Sz\u00e1ma\" value=\"\" type=\"tel\" name=\"your-sms\" \/><\/span>\n\t<\/p>\n\t<p class=\"col-lg-12\" ><select class=\"form-control\" id=\"Select service\">\n <option>C\u00e9gtulajdonos<\/option>\n <option>Marketing szakember<\/option>\n <option>Rekl\u00e1mszolg\u00e1ltat\u00f3<\/option>\n <option>Szabad\u00fasz\u00f3k<\/option>\n <option>Digit\u00e1lis marketing \u00fcgyn\u00f6ks\u00e9g<\/option>\n <option>Egy\u00e9b<\/option>\n <\/select>\n\t<\/p>\n\t<p class=\"col-lg-12\"><span class=\"wpcf7-form-control-wrap\" data-name=\"Subject\"><input size=\"40\" maxlength=\"400\" class=\"wpcf7-form-control wpcf7-text\" aria-invalid=\"false\" placeholder=\"C\u00edm\" value=\"\" type=\"text\" name=\"Subject\" \/><\/span>\n\t<\/p>\n\t<p class=\"col-lg-12\"><span class=\"wpcf7-form-control-wrap\" data-name=\"your-message\"><textarea cols=\"40\" rows=\"10\" maxlength=\"2000\" class=\"wpcf7-form-control wpcf7-textarea\" aria-invalid=\"false\" placeholder=\"\u00dczeneted\" name=\"your-message\"><\/textarea><\/span>\n\t<\/p>\n\t<p class=\"col-lg-6\"><input class=\"wpcf7-form-control wpcf7-submit has-spinner btn btn-color-white btn-shape-semi-round\" type=\"submit\" value=\"\u00dczenetet k\u00fcldeni\" \/>\n\t<\/p>\n<\/div><div class=\"wpcf7-response-output\" aria-hidden=\"true\"><\/div>\n<\/form>\n<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t<div class=\"elementor-column elementor-col-33 elementor-top-column elementor-element elementor-element-9706f11\" data-id=\"9706f11\" data-element_type=\"column\" data-settings=\"{&quot;background_background&quot;:&quot;gradient&quot;}\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-e92e01d elementor-widget elementor-widget-wd_title\" data-id=\"e92e01d\" data-element_type=\"widget\" data-widget_type=\"wd_title.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"title-wrapper set-mb-s reset-last-child wd-title-color-white wd-title-style-default wd-title-size-small text-left\">\n\n\t\t\t\t\t\t\t<div class=\"title-subtitle subtitle-color-white subtitle-style-default wd-fontsize-xs\">\n\t\t\t\t\tGeehootek szoftver \u00e9s h\u00e1l\u00f3zati st\u00fadi\u00f3\t\t\t\t<\/div>\n\t\t\t\n\t\t\t<div class=\"liner-continer\">\n\t\t\t\t<h4 class=\"woodmart-title-container title wd-fontsize-m\">El\u00e9rhet\u0151s\u00e9gek<\/h4> \n\t\t\t\t\t\t\t<\/div>\n\n\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-901043d elementor-widget elementor-widget-wd_infobox\" data-id=\"901043d\" data-element_type=\"widget\" data-widget_type=\"wd_infobox.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"info-box-wrapper\">\n\t\t\t<div class=\"wd-info-box text-left box-icon-align-left box-style-base color-scheme-\" >\n\t\t\t\t\t\t\t\t\t<div class=\"box-icon-wrapper  box-with-icon box-icon-simple\">\n\t\t\t\t\t\t<div class=\"info-box-icon\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"info-svg-wrapper info-icon\" style=\"width:30px; height:30px;\"><svg id=\"svg-2303\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" height=\"48px\" viewBox=\"0 0 24 24\" width=\"48px\" fill=\"#1796e5\"><path d=\"M0 0h24v24H0z\" fill=\"none\"><\/path><path d=\"M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z\"><\/path><\/svg> <\/span>\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t\n\t\t\t\t<div class=\"info-box-content\">\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t<div class=\"info-box-inner set-cont-mb-s reset-last-child\"\n\t\t\t\t\t\t data-elementor-setting-key=\"content\">\n\t\t\t\t\t\t<p><span class=\"elementor-icon-list-text\">Nagykov\u00e1csi, Beseny\u0151telek u. 2, 2094<\/span><\/p>\n\t\t\t\t\t<\/div>\n\t\n\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-8ac747e elementor-widget elementor-widget-wd_infobox\" data-id=\"8ac747e\" data-element_type=\"widget\" data-widget_type=\"wd_infobox.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"info-box-wrapper\">\n\t\t\t<div class=\"wd-info-box text-left box-icon-align-left box-style-base color-scheme-\" >\n\t\t\t\t\t\t\t\t\t<div class=\"box-icon-wrapper  box-with-icon box-icon-simple\">\n\t\t\t\t\t\t<div class=\"info-box-icon\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"info-svg-wrapper info-icon\" style=\"width:30px; height:30px;\"><svg id=\"svg-7204\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" height=\"48px\" viewBox=\"0 0 24 24\" width=\"48px\" fill=\"#1796e5\"><path d=\"M0 0h24v24H0z\" fill=\"none\"><\/path><path d=\"M20.01 15.38c-1.23 0-2.42-.2-3.53-.56-.35-.12-.74-.03-1.01.24l-1.57 1.97c-2.83-1.35-5.48-3.9-6.89-6.83l1.95-1.66c.27-.28.35-.67.24-1.02-.37-1.11-.56-2.3-.56-3.53 0-.54-.45-.99-.99-.99H4.19C3.65 3 3 3.24 3 3.99 3 13.28 10.73 21 20.01 21c.71 0 .99-.63.99-1.18v-3.45c0-.54-.45-.99-.99-.99z\"><\/path><\/svg> <\/span>\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t\n\t\t\t\t<div class=\"info-box-content\">\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t<div class=\"info-box-inner set-cont-mb-s reset-last-child\"\n\t\t\t\t\t\t data-elementor-setting-key=\"content\">\n\t\t\t\t\t\t<p>+36309964556<\/p>\n\t\t\t\t\t<\/div>\n\t\n\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-3c64084 elementor-widget elementor-widget-wd_infobox\" data-id=\"3c64084\" data-element_type=\"widget\" data-widget_type=\"wd_infobox.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"info-box-wrapper\">\n\t\t\t<div class=\"wd-info-box text-left box-icon-align-left box-style-base color-scheme-\" >\n\t\t\t\t\t\t\t\t\t<div class=\"box-icon-wrapper  box-with-icon box-icon-simple\">\n\t\t\t\t\t\t<div class=\"info-box-icon\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"info-svg-wrapper info-icon\" style=\"width:30px; height:30px;\"><svg id=\"svg-2158\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" height=\"48px\" viewBox=\"0 0 24 24\" width=\"48px\" fill=\"#1796e5\"><path d=\"M0 0h24v24H0z\" fill=\"none\"><\/path><path d=\"M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z\"><\/path><\/svg> <\/span>\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t\n\t\t\t\t<div class=\"info-box-content\">\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t<div class=\"info-box-inner set-cont-mb-s reset-last-child\"\n\t\t\t\t\t\t data-elementor-setting-key=\"content\">\n\t\t\t\t\t\t<p>Official@geehootek.com<\/p>\n\t\t\t\t\t<\/div>\n\t\n\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-4c4391a elementor-widget elementor-widget-wd_infobox\" data-id=\"4c4391a\" data-element_type=\"widget\" data-widget_type=\"wd_infobox.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"info-box-wrapper\">\n\t\t\t<div class=\"wd-info-box text-left box-icon-align-left box-style-base color-scheme-\" >\n\t\t\t\t\t\t\t\t\t<div class=\"box-icon-wrapper  box-with-icon box-icon-simple\">\n\t\t\t\t\t\t<div class=\"info-box-icon\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"info-svg-wrapper info-icon\" style=\"width:35px; height:35px;\"><svg id=\"svg-8155\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" height=\"300\" width=\"300\" viewBox=\"-51.45 -69.25 445.9 415.5\"><g fill=\"#1796e5\" fill-rule=\"evenodd\"><path d=\"M274 167c-7.778 0-14-6.222-14-14s6.222-14 14-14 14 6.222 14 14c0 7.389-6.222 14-14 14m-69 0c-7.778 0-14-6.222-14-14s6.222-14 14-14 14 6.222 14 14c0 7.389-6.222 14-14 14m102.39 78.581C329.216 229.871 343 206.5 343 180.827 343 133.316 297.052 95 240 95s-103 38.316-103 85.827c0 47.512 45.948 85.828 103 85.828 11.87 0 22.974-1.533 33.695-4.598.766-.383 1.915-.383 3.063-.383 1.915 0 3.83.766 5.361 1.532l22.591 13.028c.766.383 1.149.766 1.915.766a3.433 3.433 0 003.446-3.448c0-.767-.383-1.533-.383-2.683 0-.383-3.063-10.728-4.595-17.242-.383-.766-.383-1.532-.383-2.299-.383-2.682.766-4.597 2.68-5.747\"><\/path><path d=\"M164 86c-8.93 0-16-7.07-16-16s7.07-16 16-16 16 7.07 16 16c0 8.558-7.07 16-16 16m-82 0c-8.93 0-16-7.07-16-16s7.07-16 16-16 16 7.07 16 16c0 8.558-7.07 16-16 16m41.96-86C55.646 0 0 45.895 0 102.88c0 30.98 16.502 58.899 42.983 77.64 1.919 1.53 3.454 3.824 3.454 6.884 0 .764-.384 1.912-.384 2.677-1.919 7.649-5.373 20.27-5.757 20.652-.383 1.148-.767 1.913-.767 3.06 0 2.295 1.919 4.207 4.221 4.207.768 0 1.535-.382 2.303-.765l27.248-15.68c1.919-1.148 4.222-1.913 6.524-1.913 1.152 0 2.303 0 3.454.383 12.665 3.442 26.48 5.736 40.297 5.736h6.908c-2.687-8.031-4.222-16.445-4.222-25.242 0-51.631 50.658-93.701 112.83-93.701H246C237.173 37.48 185.747 0 123.96 0\"><\/path><\/g><\/svg> <\/span>\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t\n\t\t\t\t<div class=\"info-box-content\">\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t<div class=\"info-box-inner set-cont-mb-s reset-last-child\"\n\t\t\t\t\t\t data-elementor-setting-key=\"content\">\n\t\t\t\t\t\t<p><img fetchpriority=\"high\" decoding=\"async\" class=\"alignnone size-medium wp-image-1683\" src=\"https:\/\/geehootek.com\/wp-content\/uploads\/2021\/10\/Geehootek-code-300x300.png\" alt=\"\" width=\"250\" height=\"250\" srcset=\"https:\/\/geehootek.com\/wp-content\/uploads\/2021\/10\/Geehootek-code-300x300.png 300w, https:\/\/geehootek.com\/wp-content\/uploads\/2021\/10\/Geehootek-code-150x150.png 150w, https:\/\/geehootek.com\/wp-content\/uploads\/2021\/10\/Geehootek-code.png 378w\" sizes=\"(max-width: 250px) 100vw, 250px\" \/><\/p>\n\t\t\t\t\t<\/div>\n\t\n\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-1513ffc elementor-widget-divider--view-line elementor-widget elementor-widget-divider\" data-id=\"1513ffc\" data-element_type=\"widget\" data-widget_type=\"divider.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-divider\">\n\t\t\t<span class=\"elementor-divider-separator\">\n\t\t\t\t\t\t<\/span>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-2b4617f color-scheme-light text-left elementor-widget elementor-widget-text-editor\" data-id=\"2b4617f\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Ha b\u00e1rmilyen k\u00e9rd\u00e9se van azzal kapcsolatban, hogyan seg\u00edthetn\u00e9nk c\u00e9ge \u00fczleti tev\u00e9kenys\u00e9g\u00e9t, k\u00e9rj\u00fck, k\u00fcldj\u00f6n nek\u00fcnk \u00fczenetet, \u00e9s hamarosan felvessz\u00fck \u00d6nnel a kapcsolatot.<\/p>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-445368f elementor-widget elementor-widget-wd_social_buttons\" data-id=\"445368f\" data-element_type=\"widget\" data-widget_type=\"wd_social_buttons.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\n\t\t\t<div class=\"wd-social-icons icons-design-colored icons-size-small color-scheme-light social-share social-form-circle text-left\">\n\n\t\t\t\t\n\t\t\t\t\t\t\t\t\t<a rel=\"noopener noreferrer nofollow\" href=\"https:\/\/www.facebook.com\/sharer\/sharer.php?u=https:\/\/geehootek.com\/hu\/how-to-avoid-admin-ajax-php-400-bad-request-error-when-trying-to-use-ajax-in-wordpress-plugin-hu\/\" target=\"_blank\" class=\" wd-social-icon social-facebook\" aria-label=\"Facebook social link\">\n\t\t\t\t\t\t<span class=\"wd-icon\"><\/span>\n\t\t\t\t\t\t\t\t\t\t\t<\/a>\n\t\t\t\t\n\t\t\t\t\t\t\t\t\t<a rel=\"noopener noreferrer nofollow\" href=\"https:\/\/twitter.com\/share?url=https:\/\/geehootek.com\/hu\/how-to-avoid-admin-ajax-php-400-bad-request-error-when-trying-to-use-ajax-in-wordpress-plugin-hu\/\" target=\"_blank\" class=\" wd-social-icon social-twitter\" aria-label=\"Twitter social link\">\n\t\t\t\t\t\t<span class=\"wd-icon\"><\/span>\n\t\t\t\t\t\t\t\t\t\t\t<\/a>\n\t\t\t\t\n\t\t\t\t\t\t\t\t\t<a rel=\"noopener noreferrer nofollow\" href=\"mailto:?subject=Check%20this%20https:\/\/geehootek.com\/hu\/how-to-avoid-admin-ajax-php-400-bad-request-error-when-trying-to-use-ajax-in-wordpress-plugin-hu\/\" target=\"_blank\" class=\" wd-social-icon social-email\" aria-label=\"Email social link\">\n\t\t\t\t\t\t<span class=\"wd-icon\"><\/span>\n\t\t\t\t\t\t\t\t\t\t\t<\/a>\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\t\t\t\t<a rel=\"noopener noreferrer nofollow\" href=\"https:\/\/pinterest.com\/pin\/create\/button\/?url=https:\/\/geehootek.com\/hu\/how-to-avoid-admin-ajax-php-400-bad-request-error-when-trying-to-use-ajax-in-wordpress-plugin-hu\/&media=https:\/\/geehootek.com\/wp-content\/uploads\/2022\/03\/wordpress-admin-ajax-cache.jpg&description=Hogyan+lehet+elker%C3%BClni+az+admin-ajax.php+400+rossz+k%C3%A9r%C3%A9s+hib%C3%A1j%C3%A1t%2C+amikor+az+ajaxot+pr%C3%B3b%C3%A1lja+haszn%C3%A1lni+a+WordPress+be%C3%A9p%C3%BCl%C5%91+modulj%C3%A1ban\" target=\"_blank\" class=\" wd-social-icon social-pinterest\" aria-label=\"Pinterest social link\">\n\t\t\t\t\t\t<span class=\"wd-icon\"><\/span>\n\t\t\t\t\t\t\t\t\t\t\t<\/a>\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\t\t\t\t<a rel=\"noopener noreferrer nofollow\" href=\"https:\/\/api.whatsapp.com\/send?text=https%3A%2F%2Fgeehootek.com%2Fhu%2Fhow-to-avoid-admin-ajax-php-400-bad-request-error-when-trying-to-use-ajax-in-wordpress-plugin-hu%2F\" target=\"_blank\" class=\"whatsapp-desktop  wd-social-icon social-whatsapp\" aria-label=\"WhatsApp social link\">\n\t\t\t\t\t\t<span class=\"wd-icon\"><\/span>\n\t\t\t\t\t\t\t\t\t\t\t<\/a>\n\t\t\t\t\t\n\t\t\t\t\t<a rel=\"noopener noreferrer nofollow\" href=\"whatsapp:\/\/send?text=https%3A%2F%2Fgeehootek.com%2Fhu%2Fhow-to-avoid-admin-ajax-php-400-bad-request-error-when-trying-to-use-ajax-in-wordpress-plugin-hu%2F\" target=\"_blank\" class=\"whatsapp-mobile  wd-social-icon social-whatsapp\" aria-label=\"WhatsApp social link\">\n\t\t\t\t\t\t<span class=\"wd-icon\"><\/span>\n\t\t\t\t\t\t\t\t\t\t\t<\/a>\n\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\t\t\t\t<a rel=\"noopener noreferrer nofollow\" href=\"https:\/\/telegram.me\/share\/url?url=https:\/\/geehootek.com\/hu\/how-to-avoid-admin-ajax-php-400-bad-request-error-when-trying-to-use-ajax-in-wordpress-plugin-hu\/\" target=\"_blank\" class=\" wd-social-icon social-tg\" aria-label=\"Telegram social link\">\n\t\t\t\t\t\t<span class=\"wd-icon\"><\/span>\n\t\t\t\t\t\t\t\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t<a rel=\"noopener noreferrer nofollow\" href=\"viber:\/\/forward?text=https:\/\/geehootek.com\/hu\/how-to-avoid-admin-ajax-php-400-bad-request-error-when-trying-to-use-ajax-in-wordpress-plugin-hu\/\" target=\"_blank\" class=\" wd-social-icon social-viber\" aria-label=\"Viber social link\">\n\t\t\t\t\t\t<span class=\"wd-icon\"><\/span>\n\t\t\t\t\t\t\t\t\t\t\t<\/a>\n\t\t\t\t\n\t\t\t<\/div>\n\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t\n","protected":false},"excerpt":{"rendered":"<p>Amikor az ajax technik\u00e1t pr\u00f3b\u00e1lja haszn\u00e1lni a wordpress be\u00e9p\u00fcl\u0151 modulok fejleszt\u00e9s\u00e9ben, van n\u00e9mi elt\u00e9r\u00e9s a norm\u00e1l m\u00f3dt\u00f3l. Dolgoztam \u00e9s keresg\u00e9ltem<\/p>\n","protected":false},"author":1,"featured_media":2261,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[124],"tags":[],"class_list":["post-9677","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-wordpress-hu"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/geehootek.com\/hu\/wp-json\/wp\/v2\/posts\/9677","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/geehootek.com\/hu\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/geehootek.com\/hu\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/geehootek.com\/hu\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/geehootek.com\/hu\/wp-json\/wp\/v2\/comments?post=9677"}],"version-history":[{"count":3,"href":"https:\/\/geehootek.com\/hu\/wp-json\/wp\/v2\/posts\/9677\/revisions"}],"predecessor-version":[{"id":9755,"href":"https:\/\/geehootek.com\/hu\/wp-json\/wp\/v2\/posts\/9677\/revisions\/9755"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/geehootek.com\/hu\/wp-json\/wp\/v2\/media\/2261"}],"wp:attachment":[{"href":"https:\/\/geehootek.com\/hu\/wp-json\/wp\/v2\/media?parent=9677"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/geehootek.com\/hu\/wp-json\/wp\/v2\/categories?post=9677"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/geehootek.com\/hu\/wp-json\/wp\/v2\/tags?post=9677"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}