Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /* Prevent logged out users from accessing the search form */
- function bphelp_remove_searchform_for_logged_out_visitors() {
- if ( ! is_user_logged_in() ) {
- ?>
- <style type="text/css">
- form#search-form {
- display: none;
- }
- </style>
- <?php
- }
- }
- add_action ('bp_head', 'bphelp_remove_searchform_for_logged_out_visitors');
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement