set_post_format called after wp_update_post when using bulk edit?

I was able to solve my problem by calling set_post_format in my save_post callback and making sure to check if its set and not equal to the “no change” option. Not sure if this is the best way to go, but it works. require( plugin_admin_dir . ‘plugin-sync.php’ ); add_action( ‘save_post’, ‘savethepost’, 2000); function savethepost($post_id) { … Read more

Passing link parameter values to form

Sorry for this question, I founded the solution, now I know that i’m a dummy. if($_GET[‘action’] == ‘edit’) for everyone has my same drama. (the question remains open for better suggestions about doing that, in the best and most secure way) Tank you for any suggestion.

Run only on plug-in activation instead of wp_head

That depends on whether your plugin is written in a procedural or object oriented style. register_activation_hook is what you want. https://codex.wordpress.org/Function_Reference/register_activation_hook How exactly you incorporate it depends on your plugin coding style. Examples listed in the Codex show multiple approaches. Procedural example: If you have a function called myplugin_activate() in the main plugin file at … Read more

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