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’…?
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.