Languages: English • 日本語 (Add your language)
Adds metadata for a particular post. The information used is POSTed from the "Custom Fields" form on the Edit Post Administration screen.
<?php add_meta( $post_ID ); ?>
/* 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 );
Data used for the added metadata is taken from $_POST['metakeyselect'], $_POST['metakeyinput'], $_POST['metavalue']. Either the select or input fields are used for the meta key. If both are present, input field is used.
Since: 1.2.0
add_meta() is located in wp-admin/includes/post.php
.
add_meta_box(), add_metadata(), add_post_meta(), add_user_meta()