post_type && !empty($post->post_parent) ? get_edit_post_link($post->post_parent, '') : get_edit_post_link($post->ID, ''); } }