Yes No

colors; } elseif ( $reset == 'all' ) { // Get all keys $reset_keys = (new HELPDOCS_GLOBAL_OPTIONS)->settings_general; } // Iter the options foreach ( $reset_keys as $reset_key ) { // Delete the option delete_option( HELPDOCS_GO_PF.$reset_key ); } // Add a notice to confirm ?>

get( 'ac' ); $color_bg = $HELPDOCS_COLORS->get( 'bg' ); $color_ti = $HELPDOCS_COLORS->get( 'ti' ); $color_fg = $HELPDOCS_COLORS->get( 'fg' ); $color_cl = $HELPDOCS_COLORS->get( 'cl' ); ?>
$icon ) { $dashicons[ $key ] = 'dashicons-' . $icon; } sort( $dashicons ); $icons = [ 'options' => $dashicons, 'width' => '20rem', 'default' => 'dashicons-editor-help' ]; $current_dashicon = get_option( HELPDOCS_GO_PF.'dashicon', 'dashicons-editor-help' ); $current_dashicon = str_replace( 'dashicons-', '', $current_dashicon ); $dashicons_url = 'https://developer.wordpress.org/resource/dashicons/'; ?>
View Dashicons', $icons ), $allowed_html ); ?> (No Live Preview)', 'text', '
Preferred size: 100x100 pixels. Accepted formats: jpg | jpeg | png | webp ', [ 'default' => HELPDOCS_PLUGIN_IMG_PATH.'logo.png', 'pattern' => '^https?:\/\/.+\.(jpg|jpeg|png|webp)$' ] ), $allowed_html ); ?> HELPDOCS_NAME, 'width' => '20rem' ] ), $allowed_html ); ?> trim( helpdocs_multisite_suffix() ), 'width' => '20rem' ] ), $allowed_html ); ?> 'Help Docs', 'width' => '20rem' ] ), $allowed_html ); ?> (No Live Preview)', 'number', '
1 = Above Dashboard, 2 = Under Dashboard, 999 = Bottom, etc.', [ 'width' => '5rem', 'default' => 2 ] ), $allowed_html ); ?> WordPress.' ), 'https://wordpress.org/' ); if ( get_option( HELPDOCS_GO_PF.'menu_title' ) && get_option( HELPDOCS_GO_PF.'menu_title' ) != '' ) { $menu_title = get_option( HELPDOCS_GO_PF.'menu_title' ); } else { $menu_title = 'Help Docs'; } ob_start(); $left_footer_default = apply_filters( 'admin_footer_text', '' . $footer_text . '' ); ob_clean(); ?> Example: "For help, see the '.$menu_title.'"', [ 'default' => $left_footer_default ] ), $allowed_html ); ?> Use {version} to display the current WordPress version', [ 'default' => $default_right_footer_text ] ), $allowed_html ); ?> Use manage_options for admins only. View a list of capabilities', [ 'default' => 'manage_options' ] ), $allowed_html ); ?> $role ) { // Do not include admin if ( $key != 'administrator' ) { // Add the option's label and value $role_options[] = [ 'label' => $role[ 'name' ], 'value' => $key ]; } } // Set the args $edit_roles_args = [ 'options' => $role_options, 'class' => HELPDOCS_GO_PF.'role_checkbox' ]; ?> [ [ 'label' => 'No', 'value' => 'no' ], [ 'label' => 'Yes', 'value' => 'yes' ] ], 'width' => '10rem', ]; $api_url = help_get_api_path(); ?> Allowing documents to be public adds them to a publicly accessible custom rest api end-point, which can then be pulled in from other sites you manage.', $api_choices ), $allowed_html ); ?> $color_ac ] ), $allowed_html ); ?> $color_bg ] ), $allowed_html ); ?> $color_ti ] ), $allowed_html ); ?> $color_fg ] ), $allowed_html ); ?> $color_cl ] ), $allowed_html ); ?> You can add additional user merge tags to Gravity Form field options, notifications, and confirmations.
Separate by commas using the following format: Label (user_meta_key)', [ 'default' => 'User First Name (first_name), User Last Name (last_name), User Date Registered (user_registered)', 'rows' => '6', 'cols' => '100' ] ), $allowed_html ); ?> -1, 'post_status' => 'publish', 'post_type' => 'help-docs', 'meta_key' => HELPDOCS_GO_PF.'site_location', // phpcs:ignore WordPress.DB.SlowDBQuery.slow_db_query_meta_key 'meta_value' => base64_encode( 'main' ), // phpcs:ignore WordPress.DB.SlowDBQuery.slow_db_query_meta_value 'meta_compare' => '=', 'orderby' => 'post_title', 'order' => 'ASC' ]; $docs = get_posts( $default_doc_args ); $imports = helpdocs_get_imports( $default_doc_args ); if ( !empty( $imports ) ) { $docs = array_merge( $docs, $imports ); } // Store the choices here $main_doc_choices = [ 'options' => [ [ 'label' => '-- Select a Doc --', 'value' => '' ] ], 'width' => '10rem', ]; if ( !empty( $docs ) ) { foreach ( $docs as $doc ) { $main_doc_choices[ 'options' ][] = [ 'label' => $doc->post_title, 'value' => $doc->ID ]; } $default_doc_desc = 'You can select a default document to load on the main documentation page. Otherwise it will load the first doc on the list.'; } else { $default_doc_desc = 'Once you have added documents to the main documentation page, you can select a default to load. Otherwise it will load the first doc on the list.'; } ?> '.$default_doc_desc, $main_doc_choices ), $allowed_html ); ?>
Reset Colors to Default | Reset All Settings to Default | Copy Settings from Another Site
Don't forget to save your changes!