How to get page name in popup plugin
-
I want to customize your plugin in a way that i can send my html email according to the page from where the subscriber subscribed from. like if i have 2 pages page1 and page2 and on every page load popup appears when a user subscribes email is sent with page1 respective html and page 2 respective html. For that i am modifying popup-by-supsystic/modules/subscribe/models/subscribe.php and _sendNewUserNotification().
I have used this but failed.
global $post;
$pagename = $post->post_name;i used this and failed as well
$url= $_SERVER[‘REQUEST_URI’];
$parts = explode(‘/’, trim($url, ‘/’));
$pagename = $parts[1];$pagename always remains empty
Please help
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘How to get page name in popup plugin’ is closed to new replies.