Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Mte90 authored Aug 29, 2023
1 parent e050423 commit ecebf01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Templating system in WordPress (woocommerce like) also for email with l10n suppo
// This is like the woocommerce function
function load_content_demo( $original_template ) {
if ( is_singular( 'demo' ) && in_the_loop() ) {
return wpbp_get_template_part( 'plugin-name-folder', 'content', 'demo', false );
return wpbp_get_template_part( 'plugin-name-folder', 'content', 'demo', false, array() ); // The last parameter is for arguments to pass to the template but is not mandatory
} else {
return $original_template;
}
Expand Down

0 comments on commit ecebf01

Please sign in to comment.