multisite custom directory
Add this: define( ‘PLUGIN_DIR’, ABSPATH . ‘/ext’ );
Add this: define( ‘PLUGIN_DIR’, ABSPATH . ‘/ext’ );
wp-config.php is suggested place for such definitions, because at any point later they might get replaced by default values during loading. See Editing wp-config.php in Codex for thorough instructions. Also worth noting that it’s commonly said like add to the end, but really definitions should go above this line: /* That’s all, stop editing! Happy … Read more
How can I make wordpress suppress mysql errors?
Reasons this might happen: When WP checks the tables exist and they don’t If the DB connection fails The database is unreachable A DESCRIBE query on the tables fails, be it permissions or access based If there is an error recorded in the wpdb object while setting up initial variables in wp_set_wpdb_vars When ms_load_current_site_and_network returns … Read more
No, that should be enough. Elementor sets its base URL ELEMENTOR_URL from plugins_url plugins_url uses WP_PLUGIN_URL which is set in default-constants.php WP_PLUGIN_URL is constructed from WP_CONTENT_URL which is constructed from get_option(‘siteurl’) there’s a default options_siteurl filter called _config_wp_siteurl that overrides the value fetched from the database with WP_SITEURL if set. So assuming you don’t have … Read more
You might want to look into creating a MU (Must Use) plugin, see WordPress Codex. Within this file, you can include your library (using require) or you could just tweak your library file a bit and use it directly as the MU plugin. The session_start() and ob_start() functions worked for me with ever-so-brief testing, but … Read more
WordPress uses the wp_mail() function to send mail. It says on the Codex article there that: For this function to work, the settings SMTP and smtp_port (default: 25) need to be set in your php.ini file. Also be sure to check that your contact form is sending the required parameters to the wp_mail() function. The … Read more
Upon further investigation, I found that the answer to my problem involved one simple, yet easy to overlook fix: I needed to add this new site to my hosts file.
Instead of renaming, set up your local web server to handle requests to that domain and modify your local hosts file to associate the domain with ip 127.0.0.1. Especially when debugging hard to find bugs you will want your enviroment to be as similar to the one of the live site. (I can do it … Read more
wp-config.php file do not have to be at the root directory, it can also be at the directory above it (that way they are not easily accessible from the web even if php interpreter malfunctions).