dralawady (@dralawady)

Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • In reply to: Repair tool with cron

    @dralawady

    Participant

    @robin-w: I guess my problem is in adding the event to the cron. The function I’m trying to run is bbp_admin_repair_freshness and it’s declared in tools.php file, however there is no hook attached to it. I tried the this snippet code but it didn’t work:

    if ( ! wp_next_scheduled( 'bbp_sync_forum_topics_activity' ) ) {
    	wp_schedule_event( time(), 'hourly', 'bbp_sync_forum_topics_activity' );
    }
    
    add_action( 'bbp_sync_forum_topics_activity', 'bbp_admin_repair_freshness' );
    
    In reply to: Repair tool with cron

    @dralawady

    Participant

    @liderxlt : have you managed to get it sorted. I’m trying to add a code snipped to BuddyBoss theme to run forum repair on daily basis. Can you share the code snippet with me please?


    @robin-w
    : how can make use of includes/admin/tools.php functions through a theme code snippet?

Viewing 2 replies - 1 through 2 (of 2 total)