local wordpress multisite not working on AWS development server “error establishing database connection”

there are several reasons why you can get this type of error, invalid credentials: this you said you have checked, so likely not the reason. corrupt WP files: when moving server, it is possible that the files copied (zip archived) were somewhat corrupted. this would cause can such an error. corrupted DB: again, the DB … Read more

logging out with/without confirmation – single site, multisite

Output the logout link with wc_logout_url() and it will be nonced and have no confirmation. The confirmation is a security measure. You could also try adding the following to your functions.php or a plugin: // Logout without confirmation. function wpse_bypass_logout_confirmation() { global $wp; if ( isset( $wp->query_vars[‘customer-logout’] ) ) { wp_redirect( str_replace( ‘&’, ‘&’, wp_logout_url( … Read more

How to add a link of “one” website in posts of “second” website in multisite WordPress

if you want to display the One website url in other site’s posts at bottom. you can use below code. it will display all other site links excepts current site of multisite at end of post content of “post” post type. you can change post type as your need. add_filter(‘the_content’,’add_site_url_in_bottom’,10,1); function add_site_url_in_bottom($content) { global $post; … Read more