reynskie
Forum Replies Created
-
Forum: Plugins
In reply to: [User Posts Limit] reset limithi
i set the cycle to 2020-08-09
then i created a post, the limitation is working correctly. https://prnt.sc/uxzjxz
when i try to purchased it change the date. but not the limitation still 2/2 https://prnt.sc/uxzmwci try to used the original code from documents.
the cycle date was changed and the limit is change to 0/2, however when i submitted a post its not updating, still 0/2 after submitted a post. https://prnt.sc/uxzpcm- This reply was modified 4 years, 1 month ago by reynskie.
Forum: Plugins
In reply to: [User Posts Limit] reset limithi condless
thanks for the response i really appreciated it.
btw the code you provided is not working. it won’t update the cycle date.
Forum: Plugins
In reply to: [User Posts Limit] reset limithi condless
yes i think soi also think because of the cycle date ?
the limitation is working when i set the cycle date from yesterday,then when i purchased the product again it set the cycle date today, and the limitation is back to 0/2 count, but is not working, its not updating
Forum: Plugins
In reply to: [User Posts Limit] reset limithi condless
yes i have custom post, however i am using the default post in WordPress for testing.
the limitation is working properly but the reset function is not working when user purchased a product in woo, it removed the limitation instead of reset the limits.
Forum: Plugins
In reply to: [User Posts Limit] reset limithi condless
i tried to removed the code then create a post again
it updated the column counts.
https://prnt.sc/uxxi2cForum: Plugins
In reply to: [User Posts Limit] reset limitbtw i tried to removed the code then create a post again
it updated the column counts.
https://prnt.sc/uxxi2cForum: Plugins
In reply to: [User Posts Limit] reset limithi condless
i try to post using woo3 account
it only update the post counts and not the post limit column
https://prnt.sc/uxxdqqForum: Plugins
In reply to: [User Posts Limit] reset limithi condless
thanks for the fast reply.
i installed multiple roles plugin,
here is the screenshot of the user
https://prnt.sc/uxwxz5https://prnt.sc/uxwyjw – updated the cycle field
Forum: Plugins
In reply to: [User Posts Limit] reset limithi condless
thanks for the update.
the issue is not fixed.
i updated the plugin, i copied the code & update the product ID & $rule_role https://prnt.sc/uxwak0set the bronze limitation to 2 post only https://prnt.sc/uxwaua
the limitation is working but when the user purchase the product in woo
the limitation is removed which is great but the user able to submit post unlimited.
it should be the user have 2 new post limit again.please advice thanks
Forum: Plugins
In reply to: [User Posts Limit] reset limithi condless.
thanks for the response,
i tried to used the code on the documentation & update the product id,
yes the limitation is removed when user purchased the product again from woocommerce.
however the limitation is not working anymore.hi there,
another followup for Q1.
Q1. is multiple subscription for 1 user is available for this plugin ?
like user 1 can subscribe to package 1 & 2 ?– is this possible in PRO version ? thanks
thanks for the response Mushrit Shabnam,
btw followup question for the Q2.
how to set that up?
when i tried to purchase back the subscription it says “Please Cancel Your Currently Active Pack first!”
thanks for the response.
Forum: Plugins
In reply to: [User Posts Limit] show the number of post limit of the userbtw i found some minor issue with using the shortcode. it double the output when the limit hit to zero.
Forum: Plugins
In reply to: [User Posts Limit] show the number of post limit of the userthank you it works
btw is there a sample list of shortcodes for this plugin?
thanks
hi
thanks for the response.btw im able to get the code :
function pmpro_after_change_membership_level($level_id, $user_id)
{
//get user object
$wp_user_object = new WP_User($user_id);//ignore admins
if(in_array(“administrator”, $wp_user_object->roles))
return;if($level_id == 4)
{
//New member of level #2. Give them Bronze role.
$wp_user_object->add_role(‘bronze_level’);
}elseif($level_id == 3)
{
//New member of level #1. Give them Silver role.
$wp_user_object->add_role(‘silver_level’);
}
elseif($level_id == 2)
{
//New member of level #1. Give them Gold role.
$wp_user_object->add_role(‘gold_level’);
}elseif($level_id == 5)
{
//New member of level #1. Give them Platinum role.
$wp_user_object->add_role(‘platinum_level’);
}elseif( $level_id == 0 ) {
//Cancelling. Give them Subscriber role.
$wp_user_object->set_role(‘subscriber’);
}
}
add_action(‘pmpro_after_change_membership_level’, ‘pmpro_after_change_membership_level’, 10, 2);i used add_role instead of set_role – it works perfectly of what i’ve wanted.
this way user assigned multiple roles.however when cancelling one of the level,
e.g
bronze role cancelled it will set the roles back to subscriber & the other roles get removed.is there a way only the bronze role will be removed and leave the other roles there ?