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

Check spam in custom form – akismet

The problem is the globals global $akismet_api_host, $akismet_api_port; are not available everywhere. I suggest calling your function in the “init” hook… add_action(‘init’, ‘myAkismetInit’); function myAkismetInit() { var_dump ( bm_checkSpam(”) ); } Check out the Akismet API documentation. The other option is to use one of these wrapper classes: https://github.com/tijsverkoyen/Akismet use \TijsVerkoyen\Akismet\Akismet; // create instance $akismet … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)