• Resolved pipoulito

    (@pipoulito)


    Hi,

    2 questions pkease….

    I have CPT with custom taxonomies , is it possible to add them for susbscriptions ?
    I have a lot of spammers that registers , how could i block them please ?

    thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • @pipoulito

    Adding custom post types and taxonomies is possible and the method is detailed in the API documentation here:
    https://subscribe2.wordpress.com/support/api/

    For example to add a taxonomy you need code like:

    function my_taxonomy_types($taxonomies) {
        $taxonomies[] = 'my_taxonomy_type'; // adds your taxonomy name to the current list
        return $taxonomies;
    }
    add_filter( 's2_taxonomies', 'my_taxonomy_types' );

    If you are getting spam sign ups as the public subscriber type they will be unlikely to confirm and will be deleted after the default period of 28 days.

    If you are getting spam sign ups that are registering as members in WordPress you might want to consider anti-spam plugins like Bad Behaviour and Stop Spammers.

    “If you are getting spam sign ups as the public subscriber type they will be unlikely to confirm and will be deleted after the default period of 28 days.”

    Does that mean that people who sign up on my site in the Subscribe2 plugin widget and don’t confirm should have their unconfirmed subscriptions deleted after 28 days? If that is the case, what would be the reason I have over 1000 unconfirmed subscriptions from as far back as January?

    Cheers

    Ellie

    @elliekennard

    It should work like that unless these are addresses that have been toggled to Unconfirmed by an administrator, or cron in WordPress isn’t working (or there is an unreported bug).

    • This reply was modified 5 years, 8 months ago by Matt Robinson.

    @mattyrob it is not working that way. How would I know if cron is working in WordPress?

    I did mention this some months back, but don’t recall any further information.

    Ellie

    @elliekennard

    I can see anything obvious in your forum history.

    But, to answer the question, to check wordPress cron, install WP-Crontrol.

    Once installed and activated, go to the Tools > Cron Events menu pages in the WordPress admin area. You’ll see a list of all the cron tasks. Have a look at the ‘Next Run’ column – if all of the tasks say they are running now then your Cron isn’t working and you need to speak to your host about how you can enable it.

    Subscribe2 links to the core wp_scheduled_delete event and you should see S2_Admin->s2cleaner_task()in the Actions column to show the task is correctly registered.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Custom taxonomies aand SPAM’ is closed to new replies.