Shamim Hasan
Forum Replies Created
-
AuthorPosts
-
Shamim HasanKeymaster
I have tested again now and working correctly.
Please check following
1. Your website can run cron. There are many plugins out there to check.
2. Go to Dashboard > Front End PM PRO > Emails and check all the fields are filled. Eg. Announcement subject, Announcement content.
3. refresh your website couple of times after time ends. Eg. you set 1 minute. Then after 1 minute refresh your website
4. Reduce “Emails send per interval” to 10
5. If you use any customized email template, make sure no errors are there. Also check your server log if any error there.
6. You can also check https://codex.wordpress.org/Editing_wp-config.php#Alternative_CronLet me know.
Shamim HasanKeymasterinstead of 10 use higher priority.
Shamim HasanKeymasterIf you follow that tutorial step by step, any missing string will be there.
In your case, click update button (right button of top 4 buttons) should do the trick.
Shamim HasanKeymasterShamim HasanKeymasterI have updated above code. Please use this code.
August 4, 2018 at 12:50 am in reply to: Using admin only – how can admin send emails to anyone? #16198Shamim HasanKeymasterYou can use conditional
eg.add_filter( 'fep_menu_buttons', function( $menu ) { if ( isset( $_GET['fepaction'] ) && $_GET['fepaction'] == 'message_box' ){ $menu['cus_button'] = array( 'title' => __( 'Edit', 'front-end-pm' ), 'action' => 'edit', 'class' => 'fep-button your_unique_class', 'priority' => 15, ); } return $menu; });
Shamim HasanKeymasteradd following code in your theme’s (child theme’s if any) functions.php
add_filter( 'fep_query_url_without_esc_filter', function( $url, $args ){ $url = add_query_arg( $args, 'http://example.com/my-page/messages' ); //your page url return $url; }, 10, 2 );
Shamim HasanKeymasterIs it a page? Does this have any page id?
Shamim HasanKeymasterPlease do not commented that out.
PRO version announcement emails use queue system. read more in https://www.shamimsplugins.com/docs/front-end-pm-pro/getting-started-2/announcement-email-queue/
See your setup and wait at least that much time. You can reduce time in setup to trigger quickly. As wordpress cron require visitor to work, make sure you have visitor.Let me know.
Shamim HasanKeymasterPlease use
fep_filter_before_email_send
filterAugust 4, 2018 at 12:09 am in reply to: Using admin only – how can admin send emails to anyone? #16181Shamim HasanKeymasterI am sorry, had a typo in code. I have corrected it is last reply. please use that code.
To add a menu button with unique class add following code in your theme’s (child theme’s if any) functions.php
add_filter( 'fep_menu_buttons', function( $menu ) { $menu['cus_button'] = array( 'title' => __( 'Edit', 'front-end-pm' ), 'action' => 'edit', 'class' => 'fep-button your_unique_class', 'priority' => 15, ); return $menu; });
August 3, 2018 at 8:50 pm in reply to: Using admin only – how can admin send emails to anyone? #16167Shamim HasanKeymasterYou can use Role to Role block feature. Please go to Front End PM PRO > Settings > Security > Role to Role Block
Set “From Role” as any role (except Administrator as you want admin to send message ), “To Role” as “All Roles” and “Block For” as “New Message”. This block other role users from sending new message (They can send message to admin, if you set that).For changing order add following code in your theme’s (child theme’s if any) functions.php
add_filter( 'fep_menu_buttons', function( $menu ) { $menu['message_box']['priority'] = 1; $menu['newmessage']['priority'] = 2; $menu['announcements']['priority'] = 3; $menu['directory']['priority'] = 4; $menu['settings']['priority'] = 5; return $menu; }, 50 );
Shamim HasanKeymasterNo need to create legend for that.
Proceed in following way.
1. register your email template
add_filter( 'fep_eb_templates', function( $templates, $where ) { $templates['new_message'] = 'Nieuw bericht'; return $templates; }, 10, 2 );
2. Now in
emails/new_message.php
file use$language = get_user_meta( fep_get_userdata( $user_email, 'ID', 'email'), 'icl_admin_language', true ); if( 'fr' == $language ){ require( fep_locate_template( 'emails/new_message_fr.php' ) ); }
Let me know.
Shamim HasanKeymasterPlease follow https://www.shamimsplugins.com/docs/front-end-pm-pro/customization-front-end-pm-pro/create-own-email-template/
Within your template conditionally include your user set language template.
Shamim HasanKeymasterPlease give me screenshot of Settings page “Recipient” and “Security” tab. Also give me screenshot of new message page.
-
AuthorPosts