Making WordPress.org

Changeset 10772

Timestamp:
03/05/2021 12:29:06 AM (3 years ago)
Author:
coffee2code
Message:

Handbooks, Init & Handbook: Move primary handbook config options array documentation to WPorg_Handbook::get_default_handbook_config().

Location:
sites/trunk/wordpress.org/public_html/wp-content/plugins/handbook/inc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/handbook/inc/handbook.php

    r10769 r10772  
    7575         * Filters default handbook configuration array.
    7676         *
    77          * @param string $slug The slug for the post type. Default is post type.
     77         * @param array $config {
     78         *     Associative array of handbook configuration.
     79         *
     80         *     @type string $label The label for the handbook. Default is the
     81         *                         post type slug converted to titlecase (e.g.
     82         *                         plugin-handbok => "Plugin Handbook").
     83         *     @type string $slug  The slug for the post type. Default is the
     84         *                         post type.
     85         * }
    7886         */
    7987        return (array) apply_filters( 'handbook_default_handbook_config', [
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/handbook/inc/init.php

    r10769 r10772  
    118118         * Defines and configures all handbooks.
    119119         *
    120          * @param array $config {
    121          *     Associative array of post types and their configuration options. The keys should actually be
    122          *     the post type base, hypenated and without appending '-handbook' (which will automatically get
    123          *     appended when the handbook post type is created, if the key isn't "handbook"). Default is 'handbook'.
     120         * @see WPorg_Handbook::get_default_handbook_config()
    124121         *
    125          *     @type string $label The label for the handbook. Default is the
    126          *                         post type slug converted to titlecase (e.g.
    127          *                         plugin-handbok => "Plugin Handbook").
    128          *     @type string $slug  The slug for the post type. Default is the
    129          *                         post type.
    130          * }
     122         * @param array $config Associative array of handbooks and their
     123         *                      configuration options. Keys should be the handbook
     124         *                      post type (which will get appended '-handbook' if
     125         *                      the post type isn't 'handbook' and doesn't already
     126         *                      contain '-handbook'. See
     127         *                      {@see WPorg_Handbook::get_default_handbook_config()}
     128         *                      for list of per-handbook configuration options.
    131129         */
    132130        $config = (array) apply_filters( 'handbooks_config', $config );
Note: See TracChangeset for help on using the changeset viewer.