Skip to content

Commit

Permalink
fix(template): align to latest library update
Browse files Browse the repository at this point in the history
  • Loading branch information
Mte90 committed Aug 29, 2023
1 parent 82213cf commit 7a43a2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin-name/integrations/Template.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function initialize() {
*/
public static function load_content_demo( string $original_template ) {
if ( \is_singular( 'demo' ) && \in_the_loop() ) {
return \wpbp_get_template_part( PN_TEXTDOMAIN, 'content', 'demo', false );
return \wpbp_get_template_part( PN_TEXTDOMAIN, 'content', 'demo', false, array() ); // The last parameter is for arguments to pass to the template but is not mandatory
}

return $original_template;
Expand Down

0 comments on commit 7a43a2f

Please sign in to comment.