BP_Nouveau_Blogs::setup_filters()

Register add_filter() hooks


Source Source

File: bp-templates/bp-nouveau/includes/blogs/loader.php

	protected function setup_filters() {
		if ( is_multisite() ) {
			// Add settings into the Blogs sections of the customizer.
			add_filter( 'bp_nouveau_customizer_settings', 'bp_nouveau_blogs_customizer_settings', 11, 1 );

			// Add controls into the Blogs sections of the customizer.
			add_filter( 'bp_nouveau_customizer_controls', 'bp_nouveau_blogs_customizer_controls', 11, 1 );

			// The number formatting is done into the `bp_nouveau_nav_count()` template tag.
			remove_filter( 'bp_get_total_blog_count_for_user', 'bp_core_number_format' );
		}
	}


Top ↑

Changelog Changelog

Changelog
Version Description
3.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.