Skip to content

Instantly share code, notes, and snippets.

@kilatepro
Last active March 20, 2024 19:04
Show Gist options
  • Save kilatepro/dd4b32991d31a8bf6fe1e1617847e741 to your computer and use it in GitHub Desktop.
Save kilatepro/dd4b32991d31a8bf6fe1e1617847e741 to your computer and use it in GitHub Desktop.
Complemento para o wp-config #WP #reset
/* Complemento do wp-config.php */
/**
WordPress database table prefix.
You can have multiple installations in one database if you give each
a unique prefix. Only numbers, letters, and underscores please! */ $table_prefix = 'wp_';
/**
For developers: WordPress debugging mode.
Change this to true to enable the display of notices during development.
It is strongly recommended that plugin and theme developers use WP_DEBUG
in their development environments.
For information on other constants that can be used for debugging,
visit the documentation.
@link https://wordpress.org/documentation/article/debugging-in-wordpress/ */ define( 'WP_DEBUG', false );
/* Add any custom values between this line and the "stop editing" line. */
/* Configura permissão para lidar com os arquivos / define('FS_METHOD', 'direct'); / WordPress Localized Language / define( 'WPLANG', 'pt-BR' ); / AutoSave Interval. / define( 'AUTOSAVE_INTERVAL', '180' ); / Specify maximum number of Revisions. / define( 'WP_POST_REVISIONS', '4' ); / Media Trash. / define( 'MEDIA_TRASH', true ); / Trash Days. / define( 'EMPTY_TRASH_DAYS', '12' ); / Force SSL on the Admin Panel / define('FORCE_SSL_LOGIN', true); define('FORCE_SSL_ADMIN', true); / Allowing Unfiltered WordPress Uploads for Administrators / define( 'ALLOW_UNFILTERED_UPLOADS', true ); / Defining Your WordPress.com API Key as a Constant define( 'WPCOM_API_KEY', 'YourKeyHere' ); / / Setting WPLANG Dynamically in Multilingual Websites !!! Put the wp-lang.php file in the same directory as wp-congig file and replace the line where WPLANG is defined with the line below: require_once( dirname( FILE ) . '/wp-lang.php' ); / / PHP Memory / define( 'WP_MEMORY_LIMIT', '1032M' ); / WordPress Cache / define( 'WP_CACHE', true ); / Disabling WordPress' Automatic Update Feature / define( 'AUTOMATIC_UPDATER_DISABLED', false ); / Updates / define( 'WP_AUTO_UPDATE_CORE', 'minor' ); define( 'DISALLOW_FILE_MODS', false ); define( 'DISALLOW_FILE_EDIT', true ); / Letting WordPress Skip the wp-content Directory While Updating */ define( 'CORE_UPGRADE_SKIP_NEW_BUNDLED', true );
/* That's all, stop editing! Happy publishing. */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment