Shamim Hasan
Forum Replies Created
-
AuthorPosts
-
Shamim HasanKeymaster
When message in changed from hidden to shown add this code there, this will clear cache so that you get correct count.
$participants = fep_get_participants( $message_id ); foreach( $participants as $participant ) { delete_user_option( $participant, '_fep_user_message_count' ); }change $message_id with which message is hidden to shown
Shamim HasanKeymasterPlease send a message to that user after added this code. That should delete previous cache for that user and show proper count.
Shamim HasanKeymasterPlease send a message to that user after added this code. That will delete previous cache for that user and show proper count.
It will be better if you can hide message when that message is sent rather then when view.
Shamim HasanKeymasteradd following code in your theme’s (child theme’s if any) functions.php
add_filter('fep_menu_buttons', function( $menu ){ unset($menu['announcements']); return $menu; }, 99);Shamim HasanKeymasterYou have added
$args = array(
‘post_parent’ => $ref->mes_id,
‘post_type’ => ‘any’,
‘numberposts’ => – 1,
‘post_status’ => ‘any’
);
here you have declared $args which override original $args.In messagebox no child messages is shown, so where child messages shown?
Use your same function in both hook i have given, which will cache proper count.
Shamim HasanKeymasterYou are overriding variable $args. Please change your arguments name to something else. Also you do not need to provide child messages ids.
count is cached for performance. Please use same function in hook
fep_message_count_query_argsalso. It will be hard to maintain count properly if you do not invalid cache when ref ids change for any user.Shamim HasanKeymasterThere is checkbox to select one by one.
From back-end you can select all, go to Dashboard > Front End PM PRO > All MessagesShamim HasanKeymasterBy default it collapse only messages which already read. all unread messages are open. If you still want to show all messages by default add following code in your theme’s (child theme’s if any) functions.php
add_filter( 'fep_filter_hide_message_initially_if_read', '__return_false' );Shamim HasanKeymasterwhat is $not_post? where it shows children? what is full code you have added?
Shamim HasanKeymasterPlease go to https://www.shamimsplugins.com/checkout/purchase-history/ and download version 7.2.
Then try.
When i investigate your website i updated to beta 7.2. that is not live one. Please remove previous one then download and install latest one and then try.Shamim HasanKeymasterYou can use that filter like
add_filter( 'fep_message_query_args', function( $args ){ $args['post__not_in'] = array( 1,2,3); return $args; });Where 1,2,3 is your parent messages ids.
Shamim HasanKeymasterdid you add full code? Please give me code what you have added.
Shamim HasanKeymasterThis trick only work in latest version (7.2+)
1. Go to Front End PM PRO > Settings > Licenses
2. Input your license and save
3. in address bar add&input_license_data=front_end_pm_proend of your url
4. press Enter
5. a new text box will show under license input field. ClickGet Databottom of that field.
6. copy that data and paste in that input field. Then save.Shamim HasanKeymasterIs it possible to change ip address of your website? If yes, that will be good, otherwise we will manually input your license data. But it is not recommended, you may miss some update.
Shamim HasanKeymasterit mainly pass 2 arguments ($args, $user_id). In $args there are lots of data as array. you can add or remove any data from here. Full list can be found in https://codex.wordpress.org/Class_Reference/WP_Query#Parameters
As you are working with code, better way to search the hook in code, so that you will get clear idea what is passing and how is passing. fep_message_query_args filter located in class-fep-message.php
-
AuthorPosts