get_template_part_{$slug}

get_template_part_{$slug}

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action

See hook in core

Displaying hooks found in version: wordpress-6.8

do_action('get_template_part_{$slug}') is found 1 times:

  • /wp-includes/general-template.php line 182
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    * @param string|null $name The name of the specialized template
     *                          or null if there is none.
     * @param array       $args Additional arguments passed to the template.
     */
    do_action( "get_template_part_{$slug}", $slug, $name, $args );
     
    $templates = array();
    $name      = (string) $name;
    if ( '' !== $name ) {
        $templates[] = "{$slug}-{$name}.php";
    }