bp_nouveau_before_activity_post_form()

Enqueue needed scripts for the Activity Post Form


Source Source

File: bp-templates/bp-nouveau/includes/activity/template-tags.php

function bp_nouveau_before_activity_post_form() {
	if ( bp_nouveau_current_user_can( 'publish_activity' ) ) {
		wp_enqueue_script( 'bp-nouveau-activity-post-form' );
	}
}


Top ↑

Changelog Changelog

Changelog
Version Description
5.0.0 Move the bp_before_activity_post_form hook inside the Activity post form.
3.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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