You appear to be a bot. Output may be restricted
Description
Update the value/values for a fieldWhat happens if the field is blank ?
Usage
bw_effort_update_field( $post_id, $field );
Parameters
- $post_id
- ( ID ) required – the ID of the post being saved
- $field
- ( mixed ) required –
Returns
voidSource
File name: oik/includes/bw_metadata.phpLines:
1 to 16 of 16
function bw_effort_update_field( $post_id, $field ) { global $bw_mapping; global $bw_fields; //bw_trace2( $bw_fields, "bw_fields" ); $mydata = bw_array_get( $_POST, $field, NULL ) ; //bw_trace( $mydata, __FUNCTION__, __LINE__, __FILE__, "mydata" ); if ( $mydata != null ) { if ( is_array( $mydata ) ) { bw_update_post_meta( $post_id, $field, $mydata ); } else { update_post_meta( $post_id, $field, $mydata ); } } else { // } }View on GitHub View on Trac