diff --git a/php/datasource/class-fieldmanager-datasource-post.php b/php/datasource/class-fieldmanager-datasource-post.php index cfb79e8efd..a198b966ff 100644 --- a/php/datasource/class-fieldmanager-datasource-post.php +++ b/php/datasource/class-fieldmanager-datasource-post.php @@ -160,7 +160,8 @@ public function get_items( $fragment = null ) { } else { $date_pad = ''; } - $ret[ $post_id ] = html_entity_decode( $exact_post->post_title ) . $date_pad; + $title = html_entity_decode( $exact_post->post_title ) . $date_pad; + $ret[ $post_id ] = apply_filters( 'fm_datasource_post_title', $title, $exact_post ); } } $this->_fragment = $fragment; @@ -176,7 +177,8 @@ public function get_items( $fragment = null ) { } else { $date_pad = ''; } - $ret[ $p->ID ] = $p->post_title . $date_pad; + $title = $p->post_title . $date_pad; + $ret[ $p->ID ] = apply_filters( 'fm_datasource_post_title', $title, $p ); } return $ret; }