bbp_get_forum_freshness_link

  • apply_filters( 'bbp_get_forum_freshness_link', $anchor, $forum_id )

    Source Reference:

    • Component: bbPress :: bbp-forum
      File: /bbp-includes/bbp-forum-template.php :: Trac Source Line: 514
      		}
      
      		$time_since = bbp_get_forum_last_active_time( $forum_id );
      
      		if ( !empty( $time_since ) && !empty( $link_url ) )
      			$anchor = '<a href="' . $link_url . '" title="' . esc_attr( $title ) . '">' . $time_since . '</a>';
      		else
      			$anchor = __( 'No Topics', 'bbpress' );
      
      		return apply_filters( 'bbp_get_forum_freshness_link', $anchor, $forum_id );
      	}
      
      /**
       * Return ID of forum parent, if exists
       *
       * @since bbPress (r2625)
       *
       * @param int $forum_id Optional. Forum id
       * @uses bbp_get_forum_id() To get the forum id
       * @uses get_post_field() To get the forum parent
      

Hook: add_filter: bbp_get_forum_freshness_link instances (1)

  • add_filter( 'bbp_get_forum_freshness_link', 'bbp_suppress_private_forum_meta',  10, 2 )
    $tag: bbp_get_forum_freshness_link
    $function_to_add: bbp_suppress_private_forum_meta
    $priority: 10
    $accepted_args: 2

    Source Reference:

    • Component: bbPress :: bbp-core
      File: /bbp-includes/bbp-core-hooks.php :: Trac Source Line: 358
      add_filter( 'logout_url',     'bbp_logout_url',     2, 2 );
      
      // Fix post author id for anonymous posts (set it back to 0) when the post status is changed
      add_filter( 'wp_insert_post_data', 'bbp_fix_post_author', 30, 2 );
      
      // Suppress private forum details
      add_filter( 'bbp_get_forum_topic_count',    'bbp_suppress_private_forum_meta',  10, 2 );
      add_filter( 'bbp_get_forum_reply_count',    'bbp_suppress_private_forum_meta',  10, 2 );
      add_filter( 'bbp_get_forum_post_count',     'bbp_suppress_private_forum_meta',  10, 2 );
      add_filter( 'bbp_get_forum_freshness_link', 'bbp_suppress_private_forum_meta',  10, 2 );
      add_filter( 'bbp_get_author_link',          'bbp_suppress_private_author_link', 10, 2 );
      add_filter( 'bbp_get_topic_author_link',    'bbp_suppress_private_author_link', 10, 2 );
      add_filter( 'bbp_get_reply_author_link',    'bbp_suppress_private_author_link', 10, 2 );
      
      /**
       * Add filters to anonymous post author data
       *
       * This is used to clean-up any anonymous user data that is submitted via the
       * new topic and new reply forms.
       *
      

Comments are closed.