Nonce error on shortcode | WordPress.org
[ad_1]
Hi there,
Sometimes I seem to be getting the following response;
{"success":"no","message":"Nonce error"}
From the action “da_reactions_load_buttons”.
I am using the following in my template;
<?php
if (is_plugin_active('da-reactions-premium/da-reactions.php')) {
global $post;
$item_type = $post->post_type;
$item_id = $post->ID;
echo do_shortcode('[reactions id="' . $item_id . '" type="' . $item_type . '"]');
}
Refreshing the page does not seem to give me a new nonce. I am using FlyingPress as my caching solution.
Is there a good way to make sure the shortcode always renders instead of giving the above mentioned response? Hope you can help me with that.
[ad_2]
مشاهده پاسخ های این مطلب
———————————————
این مطلب از سایت انجمن وردپرس گردآوری شده است و کلیه حقوق مطلق به انجمن وردپرس می باشد در صورت مغایرت و یا بروز مشکل اطلاع دهید تا حذف گردد
منبع: انجمن وردپرس