{"id":18455,"date":"2019-01-30T12:26:16","date_gmt":"2019-01-30T12:26:16","guid":{"rendered":"https:\/\/ebooz.com\/10-wordpress-wp-config-codes-to-improve-your-website\/"},"modified":"2023-08-17T15:24:08","modified_gmt":"2023-08-17T15:24:08","slug":"10-wordpress-wp-config-codes-to-improve-your-website","status":"publish","type":"post","link":"https:\/\/ebooz.com\/en\/10-wordpress-wp-config-codes-to-improve-your-website\/","title":{"rendered":"10 WordPress wp-config codes to improve your website"},"content":{"rendered":"\n<p>The WordPress admin makes it easy to manage settings without touching a line of code. These basic configuration settings are stored in the wp-options table within the database. But, WordPress also has a separate configuration file, called wp-config.php, which can be used for other customizations.<\/p>\n<p>Wp-config is the file where your custom hosting details (database name, database host, etc.) are saved when you install a self-hosted WordPress site. You can also add other configuration options to this file, with which you can enable or disable features such as debugging, caching, multisite, SSL login, automatic updates, and many others.<\/p>\n\n<figure><img decoding=\"async\" src=\"https:\/\/ebooz.com\/wp-content\/uploads\/2019\/01\/wp-config-frontend-1-1.jpg\" alt=\"\" \/><\/figure>\n\n<h4 class=\"wp-block-heading\" id=\"locate-and-edit-wp-config\">Locate and edit wp-config<\/h4>\n<p>When you download WordPress, the wp-config.php file is not yet present inside the installation folder. However, there is a file called wp-config-sample.php that you need to copy and rename wp-config.php. Then you need to add your basic connection details (database name, database username, database password, hostname, security keys) to this file.<\/p>\n<p>If your hosting provider uses the Softaculous auto-installer (most do), this process is automated for you and you will find wp-config.php a<br \/>wp-config-sample.php file and a file in your root folder when you connect to your server via FTP.<\/p>\n<h4><img decoding=\"async\" style=\"font-size: 16px; font-weight: inherit;\" src=\"https:\/\/ebooz.com\/wp-content\/uploads\/2019\/01\/wp-config-sample.jpg\" alt=\"\" \/><\/h4>\n\n<p>Note that the configuration order is important, so don\u2019t rearrange them. When editing the wp-config file, always use a code editor such as Sublime Text, Atom, Notepad++, Visual Studio Code, or TextMate. Word processors (Microsoft Office, Google Docs, LibreOffice, etc.) will damage your file, never use them to edit code files.<\/p>\n<p>Settings saved in wp-config override the database, in case the same type of configuration is present in both (eg home URL)<\/p>\n<h4 id=\"where-to-put-the-code-snippets\">Where to put the code snippets<\/h4>\n<p>In this article, you can find 20 code snippets that you can use to customize your wp-config.php file.<\/p>\n<p>Most of these configuration options do not exist in wp-config by default. If you want to use them, you need to add them under the initial General menu. However, you can also configure these URLs in the wp-config file.<\/p>\n<p><img decoding=\"async\" style=\"font-weight: inherit;\" src=\"https:\/\/ebooz.com\/wp-content\/uploads\/2019\/01\/place-of-snippets.jpg\" alt=\"\" \/><\/p>\n\n<p>Defining the WP_SITEURL and WP_HOME constants in the wp-config file has two benefits:<\/p>\n<ol>\n<li>It can save lives if you are unable to access your admin area for any reason.<\/li>\n<li>can reduce the number of calls to the database while your site is loading (since wp-config overrides the options saved in the database)<\/li>\n<\/ol>\n<p><code>WP_SITEURL<\/code>\u00a0specifies the URL with which users can access your site, while\u00a0<code>WP_HOME<\/code>\u00a0defines the root of your WP installation. If you installed WordPress in your root folder (this is the default) they take the same value.<\/p>\n<table style=\"font-size: 16px; font-style: normal;\">\n<tbody>\n<tr>\n<td>1<br \/>2<br \/>3<br \/>4<br \/>5<\/td>\n<td><code># Specifies site URL<\/code><br \/><code>define('WP_SITEURL', 'http:\/\/www.yourwebsite.com');<\/code>\u00a0<br \/><code># Specifies home URL (the root of the WP install)<\/code><br \/><code>define('WP_HOME', 'http:\/\/www.yourwebsite.com\/wordpress');<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n\n<h4 class=\"wp-block-heading\" id=\"empty-the-trash-after-a-certain-time\">Empty the trash after a certain time<\/h4>\n<p>You can have WordPress automatically empty your trash after a certain number of dates. The smallest value of this constant is 0, in this case it disables the trash can function.<\/p>\n<table style=\"font-size: 16px; font-style: normal;\">\n<tbody>\n<tr>\n<td>1<br \/>2<\/td>\n<td><code># Empties trash after 7 days<\/code><br \/><code>define( 'EMPTY_TRASH_DAYS', 7 );<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n\n<h4 class=\"wp-block-heading\" id=\"enable-wordpress-multisite\">Enable WordPress Multisite<\/h4>\n<p>By adding the WP_ALLOW_MULTISITE constant to your wp-config file, you can enable the WordPress multisite feature which allows you to create a network of WP sites.<\/p>\n<table style=\"font-size: 16px; font-style: normal;\">\n<tbody>\n<tr>\n<td>1<br \/>2<\/td>\n<td><code># Turns on WordPress Multisite<\/code><br \/><code>define( 'WP_ALLOW_MULTISITE', true<\/code> <code>);<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n\n<h4 class=\"wp-block-heading\" id=\"redirect-non-existing-subdomains-and-subfolders\">Redirect non-existing subdomains and subfolders<\/h4>\n<p>Sometimes visitors type a non-existent subdomain or subfolder in the URL bar. You can redirect these users to another page of your domain, for example to the home page with the help of the\u00a0<code>NOBLOGREDIRECT<\/code>constante<\/p>\n\n<figure>\n<table>\n<tbody>\n<tr>\n<td>1<br \/>2<\/td>\n<td><code># Redirects non-existing subdomains and subfolders to homepage<\/code><br \/><code>define( 'NOBLOGREDIRECT', 'http:\/\/www.yourwebsite.com<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/figure>\n\n<h4 class=\"wp-block-heading\" id=\"manage-post-revisions\">Manage Post Revisions<\/h4>\n<p>WordPress has a built-in version control system, which means it saves all subsequent revisions you create. A frequently edited post can have 25-30 revisions which can take up a lot of database space after a while.<\/p>\n<p>With the\u00a0<code>WP_POST_REVISIONS<\/code>\u00a0constant, you can maximize the number of subsequent checks or disable the feature altogether.<\/p>\n<table style=\"font-size: 16px; font-style: normal;\">\n<tbody>\n<tr>\n<td>1<br \/>2<br \/>3<br \/>4<br \/>5<\/td>\n<td><code># Completely disables post revision<\/code><br \/><code>define( 'WP_POST_REVISIONS', false<\/code> <code>);<\/code>\u00a0<br \/><code># Allows maximum 5 post revisions<\/code><br \/><code>define( 'WP_POST_REVISIONS', 5 );<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n\n<h4 class=\"wp-block-heading\" id=\"enable-built-in-database-optimization\">Enable built-in database optimization<\/h4>\n<p>WordPress has a built-in database optimization feature that you can activate by adding the following line to the wp-config.<\/p>\n<p>I wrote in detail about how this tool works in this article. The most important thing to note is that the database optimization screen is available to anyone (even non-logged-in visitors). Enable the feature only for the length of time you want to run the optimization tool, then don\u2019t forget to disable it.<\/p>\n<table style=\"font-size: 16px; font-style: normal;\">\n<tbody>\n<tr>\n<td>1<br \/>2<\/td>\n<td><code># Turns on database optimization feature<\/code><br \/><code>define( 'WP_ALLOW_REPAIR', true<\/code> <code>);<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n\n<h4 class=\"wp-block-heading\" id=\"turn-off-automatic-updates\">Turn off automatic updates<\/h4>\n<p>WordPress runs automatic background updates by default for minor versions and translation files.<\/p>\n<p>You can turn this feature on and off by setting the values of the constants\u00a0<code>AUTOMATIC_UPDATER_DISABLED<\/code>\u00a0(for all updates) and\u00a0<code>WP_AUTO_UPDATE_CORE<\/code>\u00a0(for major updates) according to the following rules:<\/p>\n\n<figure>\n<table>\n<tbody>\n<tr>\n<td>1<br \/>2<br \/>3<br \/>4<br \/>5<br \/>6<br \/>7<br \/>8<br \/>9<br \/>10<br \/>11<\/td>\n<td><code># Disables all automatic updates<\/code><br \/><code>define( 'AUTOMATIC_UPDATER_DISABLED', true<\/code> <code>);<\/code>\u00a0<br \/><code># Disables all core updates<\/code><br \/><code>define( 'WP_AUTO_UPDATE_CORE', false<\/code> <code>);<\/code>\u00a0<br \/><code># Enables all core updates, including minor and major releases<\/code><br \/><code>define( 'WP_AUTO_UPDATE_CORE', true<\/code> <code>);<\/code>\u00a0<br \/><code># Enables core updates only for minor releases (default)<\/code><br \/><code>define( 'WP_AUTO_UPDATE_CORE', 'minor'<\/code> <code>);<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/figure>\n\n<h4 class=\"wp-block-heading\" id=\"increase-php-memory-limit\">Increase PHP memory limit<\/h4>\n<p>Sometimes you may want to increase the PHP memory limit that your hosting provider has allocated to your site, especially if you get the dreaded \u201cAllowed memory size of xxxxxx bytes exhausted\u201d message. To do this, use \u00a0<code>WP_MEMORY_LIMIT<\/code>\u00a0for the website and\u00a0<code>WP_MAX_MEMORY_LIMIT<\/code>\u00a0for the administration area.<\/p>\n<p>Note that some hosts do not allow you to manually increase the memory limit; in this case, contact them and ask them to do it for you.<\/p>\n<table style=\"font-size: 16px; font-style: normal;\">\n<tbody>\n<tr>\n<td>1<br \/>2<br \/>3<br \/>4<br \/>5<\/td>\n<td><code># Sets memory limit for the website<\/code><br \/><code>define( 'WP_MEMORY_LIMIT', '96M'<\/code> <code>);<\/code>\u00a0<br \/><code># Sets memory limit for the admin area<\/code><br \/><code>define( 'WP_MAX_MEMORY_LIMIT', '128M'<\/code> <code>);<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n\n<h4 class=\"wp-block-heading\" id=\"disable-unfiltered-html\">Disable unfiltered HTML<\/h4>\n<p>Although low-level users (subscribers, contributors, authors) cannot post unfiltered HTML to WordPress, editors and admins can.<\/p>\n<p>By adding the following line of code to your wp-config file, you can increase security by preventing high-level users from posting unfiltered HTML.<\/p>\n<table style=\"font-size: 16px; font-style: normal;\">\n<tbody>\n<tr>\n<td>1<br \/>2<\/td>\n<td><code># Disables unfiltered HTML for admins and editors<\/code><br \/><code>define( 'DISALLOW_UNFILTERED_HTML', true<\/code> <code>);<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p>The WordPress admin makes it easy to manage settings without touching a line of code. These basic configuration settings are stored in the wp-options table within the database. But, WordPress also has a separate configuration file, called wp-config.php, which can be used for other customizations. Wp-config is the file where your custom hosting details (database [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":17689,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"disabled","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[67,70,69],"tags":[],"class_list":["post-18455","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-news-en-2","category-programacion-en","category-wordpress-en-2"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>10 WordPress wp-config codes to improve your website - Ebooz.com<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/ebooz.com\/10-codigos-para-el-wp-config-de-wordpress-para-mejorar-tu-web\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"10 WordPress wp-config codes to improve your website - Ebooz.com\" \/>\n<meta property=\"og:description\" content=\"The WordPress admin makes it easy to manage settings without touching a line of code. These basic configuration settings are stored in the wp-options table within the database. But, WordPress also has a separate configuration file, called wp-config.php, which can be used for other customizations. Wp-config is the file where your custom hosting details (database [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/ebooz.com\/10-codigos-para-el-wp-config-de-wordpress-para-mejorar-tu-web\/\" \/>\n<meta property=\"og:site_name\" content=\"Ebooz.com\" \/>\n<meta property=\"article:published_time\" content=\"2019-01-30T12:26:16+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-08-17T15:24:08+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/ebooz.com\/wp-content\/uploads\/2019\/01\/wp-config-frontend-1.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"768\" \/>\n\t<meta property=\"og:image:height\" content=\"479\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/ebooz.com\/10-codigos-para-el-wp-config-de-wordpress-para-mejorar-tu-web\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/ebooz.com\/10-codigos-para-el-wp-config-de-wordpress-para-mejorar-tu-web\/\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\/\/ebooz.com\/#\/schema\/person\/0623875239faee90ed082b7c785f961e\"},\"headline\":\"10 WordPress wp-config codes to improve your website\",\"datePublished\":\"2019-01-30T12:26:16+00:00\",\"dateModified\":\"2023-08-17T15:24:08+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/ebooz.com\/10-codigos-para-el-wp-config-de-wordpress-para-mejorar-tu-web\/\"},\"wordCount\":831,\"publisher\":{\"@id\":\"https:\/\/ebooz.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/ebooz.com\/10-codigos-para-el-wp-config-de-wordpress-para-mejorar-tu-web\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/ebooz.com\/wp-content\/uploads\/2019\/01\/wp-config-frontend-1.jpg\",\"articleSection\":[\"News\",\"Programaci\u00f3n\",\"Wordpress\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/ebooz.com\/10-codigos-para-el-wp-config-de-wordpress-para-mejorar-tu-web\/\",\"url\":\"https:\/\/ebooz.com\/10-codigos-para-el-wp-config-de-wordpress-para-mejorar-tu-web\/\",\"name\":\"10 WordPress wp-config codes to improve your website - Ebooz.com\",\"isPartOf\":{\"@id\":\"https:\/\/ebooz.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/ebooz.com\/10-codigos-para-el-wp-config-de-wordpress-para-mejorar-tu-web\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/ebooz.com\/10-codigos-para-el-wp-config-de-wordpress-para-mejorar-tu-web\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/ebooz.com\/wp-content\/uploads\/2019\/01\/wp-config-frontend-1.jpg\",\"datePublished\":\"2019-01-30T12:26:16+00:00\",\"dateModified\":\"2023-08-17T15:24:08+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/ebooz.com\/10-codigos-para-el-wp-config-de-wordpress-para-mejorar-tu-web\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/ebooz.com\/10-codigos-para-el-wp-config-de-wordpress-para-mejorar-tu-web\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/ebooz.com\/10-codigos-para-el-wp-config-de-wordpress-para-mejorar-tu-web\/#primaryimage\",\"url\":\"https:\/\/ebooz.com\/wp-content\/uploads\/2019\/01\/wp-config-frontend-1.jpg\",\"contentUrl\":\"https:\/\/ebooz.com\/wp-content\/uploads\/2019\/01\/wp-config-frontend-1.jpg\",\"width\":768,\"height\":479},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/ebooz.com\/10-codigos-para-el-wp-config-de-wordpress-para-mejorar-tu-web\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Portada\",\"item\":\"https:\/\/ebooz.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"10 WordPress wp-config codes to improve your website\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/ebooz.com\/#website\",\"url\":\"https:\/\/ebooz.com\/\",\"name\":\"Ebooz.com\",\"description\":\"Dise\u00f1o Web en Marbella\",\"publisher\":{\"@id\":\"https:\/\/ebooz.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/ebooz.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/ebooz.com\/#organization\",\"name\":\"Ebooz.com\",\"url\":\"https:\/\/ebooz.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/ebooz.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/ebooz.com\/wp-content\/uploads\/2023\/08\/cropped-ebooz-logo-1.jpg\",\"contentUrl\":\"https:\/\/ebooz.com\/wp-content\/uploads\/2023\/08\/cropped-ebooz-logo-1.jpg\",\"width\":240,\"height\":88,\"caption\":\"Ebooz.com\"},\"image\":{\"@id\":\"https:\/\/ebooz.com\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/ebooz.com\/#\/schema\/person\/0623875239faee90ed082b7c785f961e\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/secure.gravatar.com\/avatar\/724e1a043b3851b778bb4e054931f0e8c364b2ab59f28feeb890c633c4b0e4f9?s=96&d=mm&r=g\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/724e1a043b3851b778bb4e054931f0e8c364b2ab59f28feeb890c633c4b0e4f9?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/724e1a043b3851b778bb4e054931f0e8c364b2ab59f28feeb890c633c4b0e4f9?s=96&d=mm&r=g\",\"caption\":\"admin\"},\"sameAs\":[\"https:\/\/ebooz.com\"],\"url\":\"https:\/\/ebooz.com\/en\/author\/info_e6lcx3i1\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"10 WordPress wp-config codes to improve your website - Ebooz.com","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/ebooz.com\/10-codigos-para-el-wp-config-de-wordpress-para-mejorar-tu-web\/","og_locale":"en_US","og_type":"article","og_title":"10 WordPress wp-config codes to improve your website - Ebooz.com","og_description":"The WordPress admin makes it easy to manage settings without touching a line of code. These basic configuration settings are stored in the wp-options table within the database. But, WordPress also has a separate configuration file, called wp-config.php, which can be used for other customizations. Wp-config is the file where your custom hosting details (database [&hellip;]","og_url":"https:\/\/ebooz.com\/10-codigos-para-el-wp-config-de-wordpress-para-mejorar-tu-web\/","og_site_name":"Ebooz.com","article_published_time":"2019-01-30T12:26:16+00:00","article_modified_time":"2023-08-17T15:24:08+00:00","og_image":[{"width":768,"height":479,"url":"https:\/\/ebooz.com\/wp-content\/uploads\/2019\/01\/wp-config-frontend-1.jpg","type":"image\/jpeg"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"Written by":"admin","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/ebooz.com\/10-codigos-para-el-wp-config-de-wordpress-para-mejorar-tu-web\/#article","isPartOf":{"@id":"https:\/\/ebooz.com\/10-codigos-para-el-wp-config-de-wordpress-para-mejorar-tu-web\/"},"author":{"name":"admin","@id":"https:\/\/ebooz.com\/#\/schema\/person\/0623875239faee90ed082b7c785f961e"},"headline":"10 WordPress wp-config codes to improve your website","datePublished":"2019-01-30T12:26:16+00:00","dateModified":"2023-08-17T15:24:08+00:00","mainEntityOfPage":{"@id":"https:\/\/ebooz.com\/10-codigos-para-el-wp-config-de-wordpress-para-mejorar-tu-web\/"},"wordCount":831,"publisher":{"@id":"https:\/\/ebooz.com\/#organization"},"image":{"@id":"https:\/\/ebooz.com\/10-codigos-para-el-wp-config-de-wordpress-para-mejorar-tu-web\/#primaryimage"},"thumbnailUrl":"https:\/\/ebooz.com\/wp-content\/uploads\/2019\/01\/wp-config-frontend-1.jpg","articleSection":["News","Programaci\u00f3n","Wordpress"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/ebooz.com\/10-codigos-para-el-wp-config-de-wordpress-para-mejorar-tu-web\/","url":"https:\/\/ebooz.com\/10-codigos-para-el-wp-config-de-wordpress-para-mejorar-tu-web\/","name":"10 WordPress wp-config codes to improve your website - Ebooz.com","isPartOf":{"@id":"https:\/\/ebooz.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/ebooz.com\/10-codigos-para-el-wp-config-de-wordpress-para-mejorar-tu-web\/#primaryimage"},"image":{"@id":"https:\/\/ebooz.com\/10-codigos-para-el-wp-config-de-wordpress-para-mejorar-tu-web\/#primaryimage"},"thumbnailUrl":"https:\/\/ebooz.com\/wp-content\/uploads\/2019\/01\/wp-config-frontend-1.jpg","datePublished":"2019-01-30T12:26:16+00:00","dateModified":"2023-08-17T15:24:08+00:00","breadcrumb":{"@id":"https:\/\/ebooz.com\/10-codigos-para-el-wp-config-de-wordpress-para-mejorar-tu-web\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/ebooz.com\/10-codigos-para-el-wp-config-de-wordpress-para-mejorar-tu-web\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/ebooz.com\/10-codigos-para-el-wp-config-de-wordpress-para-mejorar-tu-web\/#primaryimage","url":"https:\/\/ebooz.com\/wp-content\/uploads\/2019\/01\/wp-config-frontend-1.jpg","contentUrl":"https:\/\/ebooz.com\/wp-content\/uploads\/2019\/01\/wp-config-frontend-1.jpg","width":768,"height":479},{"@type":"BreadcrumbList","@id":"https:\/\/ebooz.com\/10-codigos-para-el-wp-config-de-wordpress-para-mejorar-tu-web\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Portada","item":"https:\/\/ebooz.com\/"},{"@type":"ListItem","position":2,"name":"10 WordPress wp-config codes to improve your website"}]},{"@type":"WebSite","@id":"https:\/\/ebooz.com\/#website","url":"https:\/\/ebooz.com\/","name":"Ebooz.com","description":"Dise\u00f1o Web en Marbella","publisher":{"@id":"https:\/\/ebooz.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/ebooz.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/ebooz.com\/#organization","name":"Ebooz.com","url":"https:\/\/ebooz.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/ebooz.com\/#\/schema\/logo\/image\/","url":"https:\/\/ebooz.com\/wp-content\/uploads\/2023\/08\/cropped-ebooz-logo-1.jpg","contentUrl":"https:\/\/ebooz.com\/wp-content\/uploads\/2023\/08\/cropped-ebooz-logo-1.jpg","width":240,"height":88,"caption":"Ebooz.com"},"image":{"@id":"https:\/\/ebooz.com\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/ebooz.com\/#\/schema\/person\/0623875239faee90ed082b7c785f961e","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/724e1a043b3851b778bb4e054931f0e8c364b2ab59f28feeb890c633c4b0e4f9?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/724e1a043b3851b778bb4e054931f0e8c364b2ab59f28feeb890c633c4b0e4f9?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/724e1a043b3851b778bb4e054931f0e8c364b2ab59f28feeb890c633c4b0e4f9?s=96&d=mm&r=g","caption":"admin"},"sameAs":["https:\/\/ebooz.com"],"url":"https:\/\/ebooz.com\/en\/author\/info_e6lcx3i1\/"}]}},"_links":{"self":[{"href":"https:\/\/ebooz.com\/en\/wp-json\/wp\/v2\/posts\/18455","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ebooz.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ebooz.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ebooz.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ebooz.com\/en\/wp-json\/wp\/v2\/comments?post=18455"}],"version-history":[{"count":0,"href":"https:\/\/ebooz.com\/en\/wp-json\/wp\/v2\/posts\/18455\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ebooz.com\/en\/wp-json\/wp\/v2\/media\/17689"}],"wp:attachment":[{"href":"https:\/\/ebooz.com\/en\/wp-json\/wp\/v2\/media?parent=18455"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ebooz.com\/en\/wp-json\/wp\/v2\/categories?post=18455"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ebooz.com\/en\/wp-json\/wp\/v2\/tags?post=18455"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}