wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi
wp_save_revisioned_meta_fields › WordPress Function
Da6.4.0
Deprecaton/a
› wp_save_revisioned_meta_fields ( $revision_id, $post_id )
Parametri: (2) |
|
Definito a: |
|
Codex: |
Save the revisioned meta fields.
Sorgenti
function wp_save_revisioned_meta_fields( $revision_id, $post_id ) { $post_type = get_post_type( $post_id ); if ( ! $post_type ) { return; } foreach ( wp_post_revision_meta_keys( $post_type ) as $meta_key ) { if ( metadata_exists( 'post', $post_id, $meta_key ) ) { _wp_copy_post_meta( $post_id, $revision_id, $meta_key ); } } }