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
| add_filter('ms_frontend_custom_registration_form','gravity_register_form') ; | |
| function gravity_register_form($form) { | |
| if(!is_user_logged_in()) | |
| return do_shortcode('[gravity_form id =1]'); | |
| return $form ; | |
| } |
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 | |
| /** | |
| * Excludes users from BuddyPress Members list. | |
| * | |
| * @param string $qs Query string. | |
| * @param string $object object loop identikfier. | |
| * | |
| * @return string | |
| */ | |
| function bpdev_exclude_users( $qs = false, $object = false ) { |
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
| function getReferrerDomain() { | |
| var url = document.createElement('a'); | |
| url.href = document.referrer; | |
| return url.hostname; | |
| } |