Created
August 18, 2016 20:51
-
-
Save iamntz/4abbf86c46d91794eed81ab78e37f687 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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