Support

Account

Home Forums Backend Issues (wp-admin) Replacing custom post type post title with an acf? Reply To: Replacing custom post type post title with an acf?

  • @elliot,
    Thanks for the headsup, I put the folllowing hook in my functions.php file but nothing happened: Looks as if the hook was disregarded / ineffective:

    
    function my_acf_update_value( $value, $post_id, $field  )
    {
        //$value = "Custom value";
     
        // do something else to the $post object via the $post_id
     
        //return $value;
    	echo '<pre>';
    	print_r( $value );
    echo '</pre>';
    die;
    }
    // acf/update_value - filter for every field
    add_filter('acf/update_value', 'member_lastname', 10, 3);
    

    I cant be using it properly to get the value from ‘m’mber_lastname’…?