Nonce failing on form submission

Okay, not sure what was wrong with my original code, but this post put me on the right path. To generate the nonce, use: wp_nonce_field( plugin_basename( __FILE__ ), ‘my_reset_nonce’,true,false); To verify, use: if ( ! isset( $_POST[‘my_reset_nonce’] ) || ! wp_verify_nonce( ( $_POST[‘my_reset_nonce’] ), plugin_basename( __FILE__ ) ) ) { die; } else { // … Read more

Problem with creating tables for Plugin

Artok, your concatenation is incorrect… You forgot to continue the pattern with your $charset_collate variable. If we look at $query1 we see this: PRIMARY KEY (ver_id) ) $charset_collate;”; What we should see is this: PRIMARY KEY (ver_id) )” . $charset_collate . “;”; You should also avoid giving your functions generic names, I recognize you may … Read more

AddToAny shortcode in the loop

Alright, I got it. And it seems so obvious to me now, that I feel a little ashamed (I’m probably tired). I spent 2 days on this issue before realizing I made a big mistake. I used this jQuery to open the .sfr-share-box’ modal containing the share icons (with a full width overlay): $(‘.sfr-share’).on(‘click’, function() … Read more