Make WordPress Core

Ticket #40508: 40508.1.patch

File 40508.1.patch, 913 bytes (added by rajanit2000, 7 years ago)

Add hooks with phpdoc

  • src/wp-includes/general-template.php

     
    2525         *
    2626         * @since 2.1.0
    2727         * @since 2.8.0 $name parameter added.
     28         * @since 5.0 add after_get_header hook
    2829         *
    2930         * @param string|null $name Name of the specific header file to use. null for the default header.
    3031         */
     
    3940        $templates[] = 'header.php';
    4041
    4142        locate_template( $templates, true );
     43
     44        do_action( 'after_get_header', $name );
    4245}
    4346
    4447/**
     
    5154 * "special".
    5255 *
    5356 * @since 1.5.0
     57 * @since 5.0 add after_get_footer hook
    5458 *
    5559 * @param string $name The name of the specialised footer.
    5660 */
     
    7478        $templates[] = 'footer.php';
    7579
    7680        locate_template( $templates, true );
     81
     82        do_action( 'after_get_footer', $name );
    7783}
    7884
    7985/**