Create a gist now

Instantly share code, notes, and snippets.

Embed
What would you like to do?
add_filter("acf/fields/post_object/result", function ($title, $post, $field, $post_id) {
if (has_post_thumbnail($post->ID)) {
$title .= ' 🖼'; // picture emoji
}
return $title;
}, 10, 4);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment