AnsPress_Common_Pages::activities_page()

Description #

Render activities page.

Changelog #

VersionDescription
4.1.8Added Exclude roles arguments.
4.1.2Introduced.

Source #

File: includes/common-pages.php

	public static function activities_page() {
		$roles = array_keys( ap_opt( 'activity_exclude_roles' ) );
		$args  = array();

		if ( ! empty( $roles ) ) {
			$args['exclude_roles'] = $roles;
		}

		$activities = new AnsPress\Activity( $args );
		include ap_get_theme_location( 'activities/activities.php' );
	}

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Add your comment