add_meta( int $post_ID )
- The information used is POSTed from the “Custom Fields” form on the Edit Post Administration screen.
- Data used for the added metadata is taken from
$_POST['metavalue']. Either the select or input fields are used for the meta key. If both are present, input field is used.
/* * Unless you developed a custom post form that uses the custom field widget, * there is little reason to use this function */ add_meta( $post_ID );