require_once ABSPATH . 'wp-admin/admin-header.php';
update_recently_edited( WP_PLUGIN_DIR . '/' .
$file );
if ( !
empty( $posted_content ) ) { $content =
$posted_content;
} else { $content =
file_get_contents( $real_file );
}if ( str_ends_with( $real_file, '.php'
) ) { $functions =
wp_doc_link_parse( $content );
if ( !
empty( $functions ) ) { $docs_select = '<select name="docs-list" id="docs-list">';
$docs_select .= '<option value="">' .
esc_html__( 'Function Name…'
) . '</option>';
foreach ( $functions as $function ) { $docs_select .= '<option value="' .
esc_attr( $function ) . '">' .
esc_html( $function ) . '()</option>';
} $docs_select .= '</select>';
}}