PluginProbe ʕ •ᴥ•ʔ
Admin Help Docs / trunk
Admin Help Docs vtrunk
2.0.1.1 trunk 1.4.3.2 2.0.0 2.0.0.1 2.0.0.2 2.0.1
admin-help-docs / inc / docs / function.php
admin-help-docs / inc / docs Last commit date
page-locations 3 months ago admin-bar.php 3 months ago controller.php 3 months ago footer-text.php 3 months ago function.php 3 months ago wp-dashboard.php 3 months ago
function.php
26 lines
1 <?php
2 /**
3 * Function: admin_help_doc( $id )
4 */
5
6 if ( ! defined( 'ABSPATH' ) ) exit;
7
8
9 /**
10 * Display a help doc manually via ID.
11 * Assumes site_location is set to 'function'.
12 * * @param int $id The help doc ID.
13 */
14 function admin_help_doc( $id ) {
15 // Basic security check
16 if ( ! is_admin() ) {
17 return;
18 }
19
20 $doc = \PluginRx\AdminHelpDocs\Helpers::get_doc( $id );
21
22 if ( $doc ) {
23 $content = apply_filters( 'the_content', $doc->post_content );
24 echo wp_kses_post( \PluginRx\AdminHelpDocs\Helpers::output_doc( $doc->ID, $doc->post_title, $content, 'manual' ) );
25 }
26 } // End admin_help_doc()