Forked from strangerstudios/my_pmpro_not_logged_in_text_filter.php
Last active
January 22, 2024 11:48
-
-
Save JarrydLong/a2236e78b1c5e78c5bbdc8ac9303a7d5 to your computer and use it in GitHub Desktop.
Filter the teaser message text for a not logged in site visitor
This file contains 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
<?php //do not copy | |
function my_pmpro_not_logged_in_text_filter($text){ | |
$text = '<h4>Account Information</h4><p>Enter account details or, if you’re already a user, <a href="/login?redirect_to=' . urlencode($_SERVER['REQUEST_URI']) . '">login here.</a></p>'; | |
return $text; | |
} | |
add_filter("pmpro_not_logged_in_text_filter", "my_pmpro_not_logged_in_text_filter", 5); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment