get_post_id(); $document = Plugin::$instance->documents->get( $post_id ); if ( ! $document ) { return; } ?>