New answers tagged

1

You can accomplish this by using WP CLI. Just run wp search-replace old-domain.com new domain.com


0

add_action('init', function(){ $redirect = isset( $_SERVER['HTTP_REFERER'] ) ? $_SERVER['HTTP_REFERER'] : home_url( '/' ); $user = wp_get_current_user(); if ( !defined('DOING_AJAX') && in_array( 'subscriber', (array) $user->roles ) ) { wp_redirect($redirect); exit(); } });


0

If you have to add many fields you have to add to query $query->query_vars['meta_query'][] = array( 'key' => 'KEY', 'value' => $_GET['FIELD'], 'compare' => 'LIKE' );


2

This is because you're only a member of 3 sites. As a super admin you have the ability to view the full site list via the network admin, but that doesn't mean you're a part of every site. The admin bar menu only lists the sites you're a member of, not the full list, that's how it's intended to work. Otherwise users would see sites listed that they have no ...


0

I solved this by following the instructions here; http://www.beyondmyfrontdoor.com/wp/how-to-fix-wordpress-reporting-the-wrong-php-version/ I turned out that the .htaccess file was loading an old version of php as follows; # Use PHP55 AddHandler application/x-httpd-php55 .php <IfModule mod_suphp.c> suPHP_ConfigPath /opt/php55/lib </IfModule> ...


Top 50 recent answers are included