BP_Nouveau_Messages::setup_actions()

Register do_action() hooks

Description

Source

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

	protected function setup_actions() {
		// Notices
		add_action( 'widgets_init', 'bp_nouveau_unregister_notices_widget' );
		add_action( 'bp_init', 'bp_nouveau_push_sitewide_notices', 99 );

		// Messages
		add_action( 'bp_messages_setup_nav', 'bp_nouveau_messages_adjust_nav' );

		// Remove deprecated scripts
		remove_action( 'bp_enqueue_scripts', 'messages_add_autocomplete_js' );

		// Enqueue the scripts for the new UI
		add_action( 'bp_nouveau_enqueue_scripts', 'bp_nouveau_messages_enqueue_scripts' );

		// Register the Messages Notifications filters
		add_action( 'bp_nouveau_notifications_init_filters', 'bp_nouveau_messages_notification_filters' );
	}

Changelog

Changelog
Version Description
BuddyPress 3.0.0 Introduced.

Questions?

We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.