bp_get_asset_template_part( string $slug, string|null $name = null )
Get an asset template part.
Description
Basically the same as bp_get_template_part(), but with ‘assets/’ prepended to the slug.
See also
- bp_get_template_part(): for full documentation.
Parameters
- $slug
-
(Required) Template slug.
- $name
-
(Optional) Template name.
Default value: null
Return
(false|string)
Source
File: bp-core/bp-core-template-loader.php
function bp_get_asset_template_part( $slug, $name = null ) { return bp_get_template_part( "assets/{$slug}", $name ); }
Changelog
Version | Description |
---|---|
BuddyPress 2.6.0 | Introduced. |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.