This file contains 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 | |
/** | |
* Filter the UUA Services 'Upcoming Service' Query. | |
* | |
* Extend the time by two hours before switching to the next service. | |
* | |
* @param array $query_args An array of query arguments. | |
* @return array | |
*/ | |
function extend_upcoming_service_display( $query_args ) { |
This file contains 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 | |
/** | |
* Bypass Force Login to allow for exceptions. | |
* | |
* @return bool Whether to disable Force Login. Default false. | |
*/ | |
function my_forcelogin_bypass( $bypass ) { | |
// add exception for buddypress login URLs | |
if ( function_exists('bp_is_register_page') ) { | |
if ( bp_is_register_page() || bp_is_activation_page() ) { |
This file contains 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 | |
/** | |
* Bypass Force Login to allow for exceptions. | |
* | |
* @param bool $bypass True to disable Force Login. Default False. | |
* @return boolean | |
*/ | |
function my_forcelogin_bypass( $bypass ) { | |
// Allow the Facebook Crawler to access the site | |
if ( strpos($_SERVER["HTTP_USER_AGENT"], "facebookexternalhit/") !== false || strpos($_SERVER["HTTP_USER_AGENT"], "Facebot") !== false ) { |
This file contains 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 | |
/** | |
* Set the URL to redirect to on login. | |
* | |
* @return string URL to redirect to on login. Must be absolute. | |
**/ | |
function my_forcelogin_redirect() { | |
return site_url( '/mypage/' ); | |
} | |
add_filter('v_forcelogin_redirect', 'my_forcelogin_redirect', 10, 1); |
This file contains 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
UPDATE wp_options SET option_value = replace(option_value, 'http://current-url.com', 'http://new-url.com') WHERE option_name = 'home' OR option_name = 'siteurl'; | |
UPDATE wp_posts SET guid = replace(guid, 'http://current-url.com', 'http://new-url.com'); | |
UPDATE wp_posts SET post_content = replace(post_content, 'http://current-url.com', 'http://new-url.com'); | |
UPDATE wp_postmeta SET meta_value = replace(meta_value, 'http://current-url.com', 'http://new-url.com'); |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>list bullet color change demo</title> | |
<style> | |
body { | |
color: #666; | |
} |