Skip to content

Instantly share code, notes, and snippets.

@iamntz
Created August 18, 2016 20:51
Show Gist options
  • Save iamntz/4abbf86c46d91794eed81ab78e37f687 to your computer and use it in GitHub Desktop.
Save iamntz/4abbf86c46d91794eed81ab78e37f687 to your computer and use it in GitHub Desktop.
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