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_exclude = ap_opt( 'activity_exclude_roles' );
		$roles         = is_array( $roles_exclude ) ? array_keys( $roles_exclude ) : array();
		$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