Created
August 2, 2021 23:01
-
-
Save andrii-kvlnko/b1b02f43266939e912595f19a6a7a565 to your computer and use it in GitHub Desktop.
Load plugin template part | WordPress
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$plugin_path = plugin_dir_path( __DIR__ ); | |
$template_path = sprintf( '%stemplate-parts/header/navbar-primary.php', $plugin_path ); | |
include $template_path; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment