PHPackages                             devgeniem/wp-define-more - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. devgeniem/wp-define-more

ActiveWordpress-muplugin[Utility &amp; Helpers](/categories/utility)

devgeniem/wp-define-more
========================

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

1.0.2(8mo ago)256.4k↓33.8%1GPL-2.0ShellPHP &gt;=5.3

Since Oct 1Pushed 8mo ago10 watchersCompare

[ Source](https://github.com/devgeniem/wp-define-more)[ Packagist](https://packagist.org/packages/devgeniem/wp-define-more)[ Docs](https://github.com/devgeniem/wp-define-more)[ RSS](/packages/devgeniem-wp-define-more/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (1)Versions (7)Used By (1)

[![geniem-github-banner](https://cloud.githubusercontent.com/assets/5691777/14319886/9ae46166-fc1b-11e5-9630-d60aa3dc4f9e.png)](https://cloud.githubusercontent.com/assets/5691777/14319886/9ae46166-fc1b-11e5-9630-d60aa3dc4f9e.png)

WP Plugin: Define More
======================

[](#wp-plugin-define-more)

[![Build Status](https://camo.githubusercontent.com/10be8a38bcb9010df980cc7747f2242d6346dfe22fee4083c0898ef7f431cd58/68747470733a2f2f7472617669732d63692e6f72672f64657667656e69656d2f77702d646566696e652d6d6f72652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/devgeniem/wp-define-more) [![Latest Stable Version](https://camo.githubusercontent.com/a61842e12dd442fa585e7880a7f379f60838abd1e3c284e979fefe6de1854a50/68747470733a2f2f706f7365722e707567782e6f72672f64657667656e69656d2f77702d646566696e652d6d6f72652f762f737461626c65)](https://packagist.org/packages/devgeniem/wp-define-more) [![Total Downloads](https://camo.githubusercontent.com/c959d11cd840ea71b3d88b35ec3bec6f77b8982a0cd0932e280aa49e19b6e497/68747470733a2f2f706f7365722e707567782e6f72672f64657667656e69656d2f77702d646566696e652d6d6f72652f646f776e6c6f616473)](https://packagist.org/packages/devgeniem/wp-define-more) [![Latest Unstable Version](https://camo.githubusercontent.com/36556caf6b4244a20e76b8ffc30c6a4e35b8d2e7b3d1b584f334e15cb3cc2e75/68747470733a2f2f706f7365722e707567782e6f72672f64657667656e69656d2f77702d646566696e652d6d6f72652f762f756e737461626c65)](https://packagist.org/packages/devgeniem/wp-define-more) [![License](https://camo.githubusercontent.com/a85fe763e515f5eb58a7d4d7e1467cf0f22de72643464c568b4b4ddd4d35b8d4/68747470733a2f2f706f7365722e707567782e6f72672f64657667656e69656d2f77702d646566696e652d6d6f72652f6c6963656e7365)](https://packagist.org/packages/devgeniem/wp-define-more)

WordPress contains multiple nice options which you can set with `define()`.

You can see good list of all them here:

This plugin adds even more stuff you can `define()`.

Current custom definable variables
----------------------------------

[](#current-custom-definable-variables)

### WP\_UPLOADS\_MAX\_SIZE

[](#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.

**Example:**

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

### WP\_UPLOADS\_DIR

[](#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.

**Example:**

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

### WP\_UPLOADS\_URL

[](#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`.

**Example:**

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

###  Health Score

46

—

FairBetter than 92% of packages

Maintenance61

Regular maintenance activity

Popularity31

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 85.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~1104 days

Total

4

Last Release

249d ago

Major Versions

1.0.1 → 2.0.x-dev2025-03-13

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5691777?v=4)[Onni Hakala](/maintainers/onnimonni)[@onnimonni](https://github.com/onnimonni)

![](https://avatars.githubusercontent.com/u/11960000?v=4)[Hion Digital Oy](/maintainers/devgeniem)[@devgeniem](https://github.com/devgeniem)

---

Top Contributors

[![onnimonni](https://avatars.githubusercontent.com/u/5691777?v=4)](https://github.com/onnimonni "onnimonni (6 commits)")[![aerkkilae](https://avatars.githubusercontent.com/u/117711076?v=4)](https://github.com/aerkkilae "aerkkilae (1 commits)")

---

Tags

wordpressoptionswpmaxuploadsfilesizedefine

### Embed Badge

![Health badge](/badges/devgeniem-wp-define-more/health.svg)

```
[![Health](https://phpackages.com/badges/devgeniem-wp-define-more/health.svg)](https://phpackages.com/packages/devgeniem-wp-define-more)
```

###  Alternatives

[roots/bedrock

WordPress boilerplate with Composer, easier configuration, and an improved folder structure

6.5k463.8k2](/packages/roots-bedrock)[helsingborg-stad/municipio

A bootstrap theme for creating municipality sites.

4028.5k10](/packages/helsingborg-stad-municipio)[roots/wp-stage-switcher

WordPress plugin that allows you to switch between different environments from the admin bar

383469.2k3](/packages/roots-wp-stage-switcher)[vinkla/wordplate

The WordPlate boilerplate

2.2k5.3k](/packages/vinkla-wordplate)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
