• I have a plugin that hooks on the ‘save_post’ action and takes some stuff from the custom fields to create other custom fields. When I save a post it works fine, but when I click the “Submit for Review” for the first time, it doesn’t see the base custom field, which is added.

    It’s as if the flows are different.

    Any idea? Or can someone direct me a bit about the “Submit for Review” flow control?

    Thanks

Viewing 1 replies (of 1 total)
  • I found a dirty workaround by adding following to wp-settings.php:

    // Include the wpdb class and, if present, a db.php database drop-in.
    require_wp_db();
    $GLOBALS[‘wpdb’]->query(‘SET SQL_MODE = “NO_AUTO_VALUE_ON_ZERO”‘);

    This is not really a solution cause other people in my company may do some updates and overwrite the wp-setting-File. It would be very very helpfull if wordpress provides initial SQL querie by plugin or configuration to solve this problem.

Viewing 1 replies (of 1 total)
  • The topic ‘Submit for Review Hooks’ is closed to new replies.