Skip to content

Commit

Permalink
Merge pull request #240 from christianwach/rendered
Browse files Browse the repository at this point in the history
Remove Base Page content filter once it has been used
  • Loading branch information
kcristiano authored Jun 3, 2021
2 parents e21001b + 16137eb commit 4e6879d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions includes/civicrm.basepage.php
Original file line number Diff line number Diff line change
Expand Up @@ -522,6 +522,9 @@ public function wpseo_page_title($post_title) {
*/
public function basepage_render() {

// We no longer need this filter, so remove it.
remove_filter('the_content', [$this, 'basepage_render']);

// Hand back our base page markup.
return $this->basepage_markup;

Expand Down

0 comments on commit 4e6879d

Please sign in to comment.