This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // check user against an existing buddypress group | |
| // I needed this in a category.php file to see if | |
| // we were looking at a specific category, and if | |
| // so, check if the user is in a buddypress group | |
| // to ensure they should have access | |
| if ( has_category( 'Some Category') && function_exists( 'groups_is_user_member' ) ) { | |
| $group_id = BP_Groups_Group::group_exists('buddypress-group-slug'); | |
| $is_member = groups_is_user_member( wp_get_current_user()->id, $group_id ); | |
| if ( !$is_member ) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * from http://paper-leaf.com/blog/2015/02/march-2015-desktop-calendar-wallpaper/ | |
| * Can't find original source | |
| **/ | |
| /** | |
| * Created by Sallar Kaboli <sallar.kaboli@gmail.com> | |
| * @sallar | |
| * | |
| * Released under the MIT License. |
NewerOlder