Problem:
How to send Site url, name, and login_page url in email notification using CRED form?
Solution:
1. For site name you can use builtin shortcode of Views [wpv-bloginfo] and for Site url you can use a custom shortcode [bloginfo_siteurl]
Please add this code in your theme’s or child theme’s functions.php file:
function bloginfo_siteurl_func( ) { return get_site_url(); } add_shortcode( 'bloginfo_siteurl', 'bloginfo_siteurl_func' );
For frontend login page, please add this code in your theme’s or child theme’s functions.php file:
function ls_login_url_func( ) { return wp_login_url(); } add_shortcode( 'ls_login_url', 'ls_login_url_func' );
2. Then use shortcodes in the CRED notification body like this:
Site name: [wpv-bloginfo] Site url: [bloginfo_siteurl] Login page url: [ls_login_url]
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
- | 12:00 – 17:00 | 12:00 – 17:00 | 12:00 – 17:00 | 12:00 – 17:00 | 12:00 – 17:00 | - |
- | 18:00 – 21:00 | 18:00 – 21:00 | 18:00 – 21:00 | 18:00 – 21:00 | 18:00 – 21:00 | - |
Supporter timezone: Asia/Karachi (GMT+05:00)
This topic contains 2 replies, has 2 voices.
Last updated by spiridonR 6 years, 7 months ago.
Assisted by: Noman.