This filter hook allows you to change the primary data of post, page or any other post type. The default post data are post_title, post_name, post_content, post_status, menu_order, post_date, post_date_gmt, post_excerpt, comment_status, ping_status, post_parent, post_author.
If you want to remove any from default or add new field, this hook will allow you to change the fields.
add_filter( 'ualp_post_primary_array', 'my_primary_array' ); function my_primary_array( $get_dafault_post_key_array ) { // remove post_date_gmt from log if (($key = array_search('post_date_gmt', $get_dafault_post_key_array)) !== false) { unset($get_dafault_post_key_array[$key]); } // add post_modified in log $get_dafault_post_key_array[] = 'post_modified'; //return array return $get_dafault_post_key_array; }