can you set a default value to a custom field
You can check it by adding a hook to save_post action. In this way all your posts will have default value for a custom field. add_action( ‘save_post’, ‘wpse8170_save_post’, 10, 2 ); function wpse8170_save_post( $post_id, WP_Post $post ) { if ( ( defined( ‘DOING_AUTOSAVE’ ) && DOING_AUTOSAVE ) || !current_user_can( ‘edit_post’ ) ) { return; } … Read more