Skip to content

get_template_part_{$slug}

github-actions[bot] edited this page Oct 25, 2025 · 1 revision

Auto-generated Example

add_action(
   'get_template_part_*',
    function(
        $slug = null,
        $name = null,
        $args = null
    ) {
        // Your code here.
    }
);

Parameters

  • $slug
  • $name
  • $args

Files

do_action( 'get_template_part_' . $slug, $slug, $name, $args )

← All Hooks

Clone this wiki locally