This topic contains 26 reply and 4 voices, and was last updated by Nayem 3 years, 11 months ago
Viewing 15 Posts - 1 through 15 (of 26 total)
Author Posts
September 19, 2015 at 8:46 pm 72510
Nayem
/**
 * Increase the post count once a post is deleted
 * 
 * @param int $post_id
 */
function wpufe_trash_post( $post_id ) {
    // bail out if charging is not enabled
    if ( wpuf_get_option( 'charge_posting', 'wpuf_payment' ) != 'yes' ) {
        return false;
    }
     
    $author_id = get_post_field( 'post_author', $post_id );
    $userdata = get_userdata( $author_id );
 
    $count = ( $userdata->wpuf_sub_pcount ) ? $userdata->wpuf_sub_pcount : 0;
    if ( $count !== 'unlimited' ) {
        $count = intval( $count );
        update_user_meta( $userdata->ID, 'wpuf_sub_pcount', $count + 1 );
    }
}
 
add_action( 'wp_trash_post', 'wpufe_trash_post' );
Thanks, David
September 20, 2015 at 11:16 am 72535
Nayem Nayem

Hello David,

Is this working now?

September 21, 2015 at 1:32 am 72651
david david

No, where is the solution? That’s code not work on last version.

September 21, 2015 at 11:29 am 72676
Nayem Nayem

Hello David,

We have added this feature in our plugin. In our next release this will be available. I will suggest you to keep patience for the next update.

Thanks.

September 22, 2015 at 2:01 am 72802
david david

The previous code has been created for you. Because you can not update the code in a simple and so neither I nor my clients we wait for the next update of the plugin?

September 22, 2015 at 12:30 pm 72824
Nayem Nayem

Hello David,

As we have added this new feature- (post count increase after deleting a post) so you have to wait for the next update. Right now we are in vacation. We will start our office from 29th Sept. Hope you got the e-mail from our company. Please keep patience.

Thanks.

October 1, 2015 at 3:44 am 73631
david david

When will the next update? We need this code back to work again.
Thanks.

October 1, 2015 at 6:33 pm 73743
Nayem Nayem

Hello David,

We will release our next update within next week. This feature will be included in the latest version.

October 6, 2015 at 12:01 pm 74160
david david

Hello,

I read the changelog v2.3.10 (5 Ocotber, 2015) and not display this option: “Increase the post count once a post is deleted”. This has been finally included? Where can I find it?

Thanks.
David

October 6, 2015 at 12:31 pm 74167
Nayem Nayem

Hello David,

I am really sorry to say that we have missed the feature to include.

Please provide your login and FTP details by using this form: http://wedevs.com/provide-login-details/. I will add this in your site.

Thank you 🙂

October 6, 2015 at 2:13 pm 74179
david david This reply has been marked as private.
October 9, 2015 at 5:30 pm 74382
david david

Hello? Please someone can answer to the problem that we have? You did you solve it once and now you can do? We have our customers very angry!

October 9, 2015 at 6:07 pm 74383
Panikkos Andreou Panikkos Andreou

No support at all….Still waiting for response 3 days now.
Ticketing system says “for faster communication and better user experience“.
Sureeee….No response is 0 support

October 10, 2015 at 11:43 am 74420
Nayem Nayem

Hello,

We were in weekend and for this reason, I could not reply to your topic.

It is not possible to provide the code here. If you can please provide your admin login details. I will install the develop version of the plugin.

Thanks.

October 10, 2015 at 6:42 pm 74437
david david This reply has been marked as private.
October 10, 2015 at 6:46 pm 74438
Nayem Nayem

Hello,

If you will provide your admin details then we will replace the plugin then you will get that feature. Because it is not a few lines of code to provide here. So please provide your login details by using this form: http://wedevs.com/provide-login-details/.
Thank you 🙂

Viewing 15 Posts - 1 through 15 (of 26 total)