ap_get_template_part( string $file,  $args = false )

Description #

Include template php files.

Parameters #

  • $file
    string (Required) File name without extension.

Changelog #

VersionDescription
2.1Introduced.

Source #

File: includes/theme.php

function ap_get_template_part( $file, $args = false ) {
	if ( false !== $args ) {
		extract( $args );
	}

	include ap_get_theme_location( $file . '.php' );
}

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Add your comment