New answers tagged

0 votes

Can WP-CLI modify database connection details in existing wp-config file?

You can use wp config set to update any existing value in wp-config or to add a new value: wp config set DB_NAME some_db_name wp config set DB_USER some_db_username wp config set DB_PASSWORD ...
  • 4,563
0 votes

WP-CLI methods for get_current_blog_id, get_blog_details or $wpdb->prefix

You can use the wp db prefix command with the --url argument to determine the prefix for that particular site. If you need to determine the urls still, maybe consider using something like the wp site ...
0 votes

Fatal error trace not shown in development setup

Something, I do not know what, is resetting my global error_reporting(E_ALL) level to a higher level, thus hiding the errors. Explicitly adding the lower error_reporting in files in question helps ...
  • 132

Top 50 recent answers are included