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 | |
| /* add this to your theme's functions.php file */ | |
| /* Add option for URL to column settings */ | |
| vc_add_param("vc_column", array( | |
| "type" => "vc_link", | |
| "class" => "", | |
| "heading" => "Column Link", |
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
| a = setInterval(function () { | |
| window.scrollTo(0,document.body.scrollHeight); | |
| $(".ProfileCard-userFields").each( function() { | |
| if($(this).find('.ProfileCard-bio').text().match(new RegExp("google|twitter|airbnb|entrepreneur|founder|tech|growthhacking|hacking|official|consultant|analytics|ecom|startup|ceo|ux|seo|ecommerce|growth"), "g") !== null ) | |
| { | |
| $(this).parent().find('.not-following .user-actions-follow-button.js-follow-btn').click(); | |
| } |
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
| //redirect non logged in users to homepage | |
| function bp_guest_redirect() { | |
| global $bp; | |
| if(!is_user_logged_in()&&!(bp_is_page(BP_REGISTER_SLUG)||bp_is_page(BP_ACTIVATION_SLUG)||is_front_page())) { // not logged in user | |
| wp_safe_redirect( bp_get_root_domain());//make sure page exists exist slug welcome | |
| exit(0);//no further execution | |
| } | |
| } |