2017 © Pedro Peláez
 

wordpress-muplugin wp-define-more

Adds useful definable constants which are missing from the WP Core.

image

devgeniem/wp-define-more

Adds useful definable constants which are missing from the WP Core.

  • Monday, July 17, 2017
  • by devgeniem
  • Repository
  • 7 Watchers
  • 2 Stars
  • 1,484 Installations
  • Shell
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 7 % Grown

The README.md

geniem-github-banner, (*1)

WP Plugin: Define More

Build Status Latest Stable Version Total Downloads Latest Unstable Version License, (*2)

WordPress contains multiple nice options which you can set with define()., (*3)

You can see good list of all them here: http://wpengineer.com/2382/wordpress-constants-overview/, (*4)

This plugin adds even more stuff you can define()., (*5)

Current custom definable variables

WP_UPLOADS_MAX_SIZE

WP_UPLOADS_MAX_SIZE - Set this to tell WordPress maximum uploads size. This is useful to tell /wp-admin/media.php javascript the maximum filesize in case your WordPress is running behind reverse proxy., (*6)

Example:, (*7)

define('WP_UPLOADS_MAX_SIZE','10M');

WP_UPLOADS_DIR

WP_UPLOADS_DIR - Set custom directory for your uploads. This helped us to use glusterfs to synchronize only uploads folder between multiple nodes. It was too heavy process and much too unreliable to sync everything., (*8)

Example:, (*9)

define('WP_UPLOADS_DIR','/var/www/uploads');

WP_UPLOADS_URL

WP_UPLOADS_URL - Set custom url for your uploads. We used this for mapping custom http://wordpress.test/uploads/ url with custom nginx root to WP_UPLOADS_DIR., (*10)

Example:, (*11)

define('WP_UPLOADS_URL', WP_SITEURL . '/uploads/');

The Versions

17/07 2017

dev-master

9999999-dev https://github.com/devgeniem/wp-define-more

Adds useful definable constants which are missing from the WP Core.

  Sources   Download

GPL-2.0

The Requires

 

wordpress wp define options uploads filesize max

17/07 2017

1.0.1

1.0.1.0 https://github.com/devgeniem/wp-define-more

Adds useful definable constants which are missing from the WP Core.

  Sources   Download

GPL-2.0

The Requires

 

wordpress wp define options uploads filesize max

17/07 2017

dev-villesiltala-patch-1

dev-villesiltala-patch-1 https://github.com/devgeniem/wp-define-more

Adds useful definable constants which are missing from the WP Core.

  Sources   Download

GPL-2.0

The Requires

 

wordpress wp define options uploads filesize max

01/10 2016

1.0

1.0.0.0 https://github.com/devgeniem/wp-define-more

Adds useful definable constants which are missing from the WP Core.

  Sources   Download

GPL-2.0

The Requires

 

wordpress wp define options uploads filesize max