Post to WordPress API using cURL and login cookies
Post to WordPress API using cURL and login cookies
Post to WordPress API using cURL and login cookies
WooCommerce has a very broad documentation, one topic in it is about Customizing checkout fields using actions and filters, you can easily set billing_email to not be required. (code untested) add_filter(‘woocommerce_checkout_fields’, ‘WPSE0309_woocommerce_checkout_fields’); function WPSE0309_woocommerce_checkout_fields( $fields ) { $fields[‘billing’][‘billing_email’][‘required’] = false; return $fields; }
You can use wp->query calls to loop through the users table and update each row in a loop. Probably would need to use cron jobs for this, this is different for every host but you basically would tell it to run your php script at intervals.
I think gform_after_submission is the wrong action to use in this case. Have you looked at gform_pre_send_email? It has an abort_email parameter, which might be useful.
I’m not an affiliate of Gravity Forms and I’m sorry if this offends someone, but based on my own custom form development experiences I can recommend it. Gravity Forms has very good API documentation that helps when customizing forms. For example on one site I used Advanced Custom Fields metafields as Gravity Forms radio field … Read more
Is it possible to create a create a custom post type for every product in this APIs and publish it on the website? Yes, loop through the results, and for each result, check if the post already exists. If it doesn’t use wp_insert_post to create the post. Try doing it on a cron job so … Read more
I’d start out by checking that your request is being passed properly. I’d do that by changing this: function custom_api_get_all_posts_callback( $request ) { // Initialize the array that will receive the posts’ data. $posts_data = array(); to this: function custom_api_get_all_posts_callback( $request ) { // Initialize the array that will receive the posts’ data. echo “<pre>”; … Read more
The problem is that if your JavaScript is referring to the IDs of the forms and inputs, so if you have both on the same page the script will only run with the values of the first form. The simplest solution would be to use different IDs for the elements in each shortcode, but a … Read more
History API & URL for single long page
REST API get featured image source for custom post type