• Resolved arhamm

    (@arhamm)


    Hi,

    I’m trying to track every time a custom field is changed on my site.

    How do I get the old and the new value?

    function price_audit_log ($post_id) {
    
        $revenue = get_post_meta( get_the_id(), 'revenue', true );
    
        
    }
    
    add_filter( 'pre_post_update', 'price_audit_log', 90);
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘Revision History’ is closed to new replies.