updated_postmeta

updated_postmeta

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action

See hook in core

Displaying hooks found in version: wordpress-6.7.2

do_action('updated_postmeta') is found 2 times:

  • /wp-includes/meta.php line 350
    346
    347
    348
    349
    350
    351
    352
    353
    354
    355
                 * @param string $meta_key   Metadata key.
                 * @param mixed  $meta_value Metadata value. This will be a PHP-serialized string representation of the value
                 *                           if the value is an array, an object, or itself a PHP-serialized string.
                 */
                do_action( 'updated_postmeta', $meta_id, $object_id, $meta_key, $meta_value );
            }
        }
     
        return true;
    }
  • /wp-includes/meta.php line 963
    959
    960
    961
    962
    963
    964
    965
    966
    967
    968
    969
        do_action( "updated_{$meta_type}_meta", $meta_id, $object_id, $meta_key, $_meta_value );
     
        if ( 'post' === $meta_type ) {
            /** This action is documented in wp-includes/meta.php */
            do_action( 'updated_postmeta', $meta_id, $object_id, $meta_key, $meta_value );
        }
     
        return true;
    }
     
    // And if the meta was not found.