wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



get_template_part › Les Actions WordPress

Depuis5.5.0
Dépréciéen/a
› do_action( 'get_template_part', $slug, $name, $templates, $args )
Paramètres: (4)
  • () slug The slug name for the generic template.
    Requis: Oui
  • () name The name of the specialized template or an empty string if there is none.
    Requis: Oui
  • () templates Array of template files to search for, in order.
    Requis: Oui
  • () args Additional arguments passed to the template.
    Requis: Oui
Défini(e) dans:
Codex:

Fires before an attempt is made to locate and load a template part.





Source

do_action( 'get_template_part', $slug, $name, $templates, $args );