Skip to:
Content
Pages
Categories
Search
Top
Bottom

[resolved] I need help with plugin development ( WangGuard )


  • Jose Conti
    Participant

    @jconti

    Hi,

    I’m developing the next WangGuard version, but there is a problem.

    When the WangGuard cron look for a new sploggers, if it find them, are marked as spam but the sploggers activity are not cleaned.

    First I used this

    update_user_status( $userid, 'spam', 1 );

    The users were marked as spam, but activity was not cleaned. I dont know why, but ‘make_spam_user’ are not used by ¿update_user_status?, by ¿BuddyPress when it is called from WangGuard cron?

    This function is used in other parts of WangGuard without problems. The difference is that in cron I need to add

    @include_once( ABSPATH . 'wp-admin/includes/ms.php' );

    After a lot of research without solution I used the function

    bp_core_mark_user_spam_admin($userid);

    before

    update_user_status( $userid, 'spam', 1 );

    https://github.com/joseconti/WangGuard/commit/612231c3935353d890bbaf10f977c8185dc33e04

    But with the same result, the activity are not cleaned…

    Any clue about this problem?

    Thank you

    BuddyPress 1.8.1 and trunk
    WordPress Multisite 3.6.x and 3.7.x
    WangGuard 1.5.11 Beta 5

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[resolved] I need help with plugin development ( WangGuard )’ is closed to new replies.
Skip to toolbar