PostParent.php 254 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 <?php namespace ACP\Export\Model\Post; use ACP\Export\Service; class PostParent implements Service { public function get_value( $id ) { $parent_id = wp_get_post_parent_id( $id ); return $parent_id ? get_the_title( $parent_id ) : ''; } }