wp-admin remove part of the url

I’ve searched in the admin templates. It seems the placeholders rely on the functions wp_get_referer() and wp_get_raw_referer() which use $_SERVER[“REQUEST_URI”], $_SERVER[‘HTTP_REFERER’] and a wp custom variable passed in the request : $_REQUEST[‘_wp_http_referer’]. So WordPress builds some URLs (apparently not all) on REQUEST_URI, that is /wp-admin/whatever (in the backend). The logs show that wp-admin/admin-ajax.php comes through … Read more

How to create a network using a command line script?

Since you’re already using WP-CLI, I recommend you to use the wp core multisite-install command to set up your network installation. When you check out the documentation you’ll see that it’s pretty straightforward. Here’s the example from the docs: $ wp core multisite-install –title=”Welcome to the WordPress” \ > –admin_user=”admin” –admin_password=”password” \ > –admin_email=”[email protected]” Single … Read more

Custom location for attached images

I would try changing your line in wp-config.php to define( ‘UPLOADS’, ‘media/blog/files’ ); // where docker is mounted Ie, get rid of the first /. Let me know if this works. EDIT If you can’t change the definition of UPLOADS you could strip out the forward slash out with code. Try changing your code to … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)