get_template_part_{$slug}

Advertisement

Summery Summery

Fires before the specified template part file is loaded.

Syntax Syntax

do_action( "get_template_part_{$slug}", string $slug, string|null $name )

Description Description

The dynamic portion of the hook name, $slug, refers to the slug name for the generic template part.

Parameters Parameters

$slug

The slug name for the generic template.

$name

The name of the specialized template.

Source Source

File: wp-includes/general-template.php

Advertisement

Changelog Changelog

Changelog
Version Description
3.0.0 Introduced.

Advertisement

Leave a Reply