How can I process a form submission from an HTTP POST request?

you can use admin-post.php to process the form. you can set the form like that : <form action=”<?= htmlspecialchars(admin_url(“admin-post.php?action=MY_PLUGIN__my_action”))?>” method=”POST” > <button name=”send”>go</button> </form> and then you link the code with that : add_action(“admin_init”, function () { if ( !isset($_GET[“action”]) || (“MY_PLUGIN__my_action” !== $_GET[“action”]) ) { return; } /* */ // debug var_export($_POST); exit(); /* … Read more

Why is email filled in when not logged in, even for new visitor

I have been able to figure out what is causing the problem. I have disabled the “Limit Login Attempts Reloaded” plugin and automatically your “SpeakOut” plugin now works correctly. I believe they are sharing common variables. Therefore, it is important that in the features or possible incompatibilities, the compatibility issue with that plugin is indicated. … Read more

Is there a way to edit non-custom term attributes?

There’s a filter for taxonomy labels, taxonomy_labels_{$taxonomy} (the {$taxonomy} should be replaced with your custom taxonomy name) that allows you to filter pretty much all of it. Example: // Assuming your custom taxonomy is named ‘faq_category’. Adjust as needed. add_filter( ‘taxonomy_labels_faq_category’, ‘wpse626542_taxonomy_labels’ ); /** * Filters the taxonomy labels. * * @param object $labels The … Read more

Create a zip code form

WordPress (or any other CMS) doesn’t have this feature by default. You need to find a plugin (I doubt if the exact plugin like this exist), or build your own code. I suppose your code should have a form for user to enter their post code. Based on the post code value, you can determine … Read more

Automatically populating a date parameter within a shortcode

you can generate shortcodes and launch them with this function : https://developer.wordpress.org/reference/functions/do_shortcode/ so you can do that in your plugin : add_shortcode(“MY_PLUGIN__forms_with_dates”, function ($atts, $content, $tag) { $atts = shortcode_atts([ “months” => 11, “id_form” => NULL, ], $atts, $tag); if (!isset($atts[“id_form”])) { return “shortcode $tag : the argument id_form is missing.”; } $shortcodes = “”; … Read more