Custom field value based on other custom field values
I recommend you look into the get_{$meta_type}_metadata filter. This is a basic hook setup to return a dynamic post meta value: <?php add_filter( “get_post_metadata”, function( $points, $post_id, $meta_key, $single ){ if ( ‘points’ == $meta_key && $single ) { update_post_meta( $post_id, ‘rank’, calculate_post_rank( $post_id, $points ) ); } return $points; }, 10, 4 );