how to handle forms in multiple pages?

Kind of – I would suggest using init. This would probably be the best way of doing it since you can process the form as described below. wp_head would work though. Also, you should make sure you are making necessary checks with ‘nonces’. I suggest the init hook as you can employ something similar to … Read more

Settings API erases itself?

The reason is that if you are on page 1, the data that is posted to be saved is an array of the form: XX_theme_settings=array(‘XX_Option1′ =>’input1′,’XX_Option2’=>’input2′,…) and contains no data from page 2. This is because the input from page 2 is not posted with it (since it wasn’t in the same <form> – it’s … Read more

Contact form 7 Dynamic text – placeholder on GET field

the Dynamic Text plugin cannot make what you need, but I use this code to write a new tag that you can use like that : [dynamictext_placeholder enquiry-product placeholder “placeholder text” “CF7_GET key=’product-name'” “before ‘%s’ after”] for that, create a new plugin with that : add_action( ‘wpcf7_init’, function () { wpcf7_add_form_tag( array( ‘dynamictext_placeholder’) , ‘wpcf7dtx_dynamictext_placeholder_shortcode_handler’ … Read more

Registration form labels – add asterisk

The * appears under the field because the field is inside the label. There doesn’t appear to be any useful filters for this, but you could use one of the hooks to inject some JS on the page that adds the *: required = jQuery( “<span>*</span>” ); required.css(“color”, “red”); jQuery(‘label br’).before( required ); Note: if … Read more

Submitting post to database then redirecting to paypal

Not sure how I ran into this question one year later, but since it is unanswered… Instead of self-submitting the form and then redirecting to Paypal, you can instead have the paypal url as your form’s action, but use Ajax to save the form data before the form is submitted to Paypal. You can also … Read more