AnsPress_Common_Pages::activities_page()
Description #
Render activities page.
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' ); }
Expand full source code Collapse full source code View on GitHub: includes/common-pages.php:207
Add your comment