{"id":18034356,"url":"https://github.com/johansatge/wp-awesomeness","last_synced_at":"2026-05-01T13:32:15.574Z","repository":{"id":20376670,"uuid":"23652172","full_name":"johansatge/wp-awesomeness","owner":"johansatge","description":"WordPress sample installation.","archived":false,"fork":false,"pushed_at":"2021-01-23T16:35:26.000Z","size":10653,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-19T05:04:46.501Z","etag":null,"topics":["installation","php","wordpress"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/johansatge.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-09-04T07:05:50.000Z","updated_at":"2021-01-23T16:35:31.000Z","dependencies_parsed_at":"2022-08-21T18:00:48.648Z","dependency_job_id":null,"html_url":"https://github.com/johansatge/wp-awesomeness","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/johansatge/wp-awesomeness","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johansatge%2Fwp-awesomeness","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johansatge%2Fwp-awesomeness/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johansatge%2Fwp-awesomeness/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johansatge%2Fwp-awesomeness/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/johansatge","download_url":"https://codeload.github.com/johansatge/wp-awesomeness/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johansatge%2Fwp-awesomeness/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32499681,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"online","status_checked_at":"2026-05-01T02:00:05.856Z","response_time":64,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["installation","php","wordpress"],"created_at":"2024-10-30T11:11:00.842Z","updated_at":"2026-05-01T13:32:15.557Z","avatar_url":"https://github.com/johansatge.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Logo](logo.png)\n\nWordPress sample installation.\n\n---\n\n* [Apache configuration](#apache-configuration)\n* [Plugins](#plugins)\n    * [`disable-comments.php`](#disable-commentsphp)\n    * [`disable-emojis.php`](#disable-emojisphp)\n    * [`http-auth.php`](#http-authphp)\n    * [`ip-restrictions.php`](#ip-restrictionsphp)\n    * [`jquery-to-footer.php`](#jquery-to-footerphp)\n    * [`mandatory-plugins.php`](#mandatory-pluginsphp)\n    * [`roles-loader.php`](#roles-loaderphp)\n\n## Apache configuration\n\n### Mandatory modules\n\n| Module | Path | Description |\n| --- | --- | --- |\n| `php5_module` | `libexec/apache2/libphp5.so` | PHP support |\n| `rewrite_module` | `libexec/apache2/mod_rewrite.so` | URL rewriting support |\n\n### Additional modules\n\n| Module | Path | Description |\n| --- | --- | --- |\n| `ssl_module` | `libexec/apache2/mod_ssl.so` | HTTPS support |\n| `env_module` | `libexec/apache2/mod_env.so` | Environment variables support |\n| `dir_module` | `libexec/apache2/mod_dir.so` | Configuration of directory index files |\n| `mime_module` | `libexec/apache2/mod_mime.so` | Association between file extensions and mime types |\n| `auth_basic_module` | `libexec/apache2/mod_auth_basic.so` | HTTP authentication |\n\n### Virtual host\n\n* Support of `.htaccess` enabled\n* Directory indexing disabled\n\n```\n\u003cVirtualHost *:80\u003e\n    ServerName wp-awesomess.dev\n    DocumentRoot /path/to/wp-awesomess/app\n    \u003cDirectory /path/to/wp-awesomess/app\u003e\n        AllowOverride all\n        Options -Indexes\n    \u003c/Directory\u003e\n\u003c/VirtualHost\u003e\n```\n\n## Plugins\n\n### `disable-comments.php`\n\nDisables comment support.\n\n* Closes comments and pings for all posts\n* Removes the comments bubble from the [Admin Bar](https://codex.wordpress.org/Toolbar)\n* Disables the `X-Pingback` HTTP header\n* Disables the `pingback.ping` method from [XMLRPC](https://codex.wordpress.org/XML-RPC_Support)\n* Removes entries from the admin menu:\n    * Comments\n    * Settings \u003e Discussion\n    \n### `disable-emojis.php`\n\nDisables emoji support.\n\n* Removes Javascript and CSS calls\n* Disables the `wpemoji` TinyMCE plugin\n\n### `http-auth.php`\n\nManages HTTP authentication.\n\nThe plugin can use [Basic](https://en.wikipedia.org/wiki/Basic_access_authentication) or [Digest](https://en.wikipedia.org/wiki/Digest_access_authentication) authentication  methods.\n\nThe configuration is done by setting the following constants in your configuration file:\n\n| Constant | Default | Usage |\n| --- | --- | --- |\n| `HTTP_AUTH_USERS` | *empty* | List of `user:password` couples, separated by a `,`. If empty or not set, the plugin will do nothing. |\n| `HTTP_AUTH_FRONTEND` | `false` | Enables auth on frontend |\n| `HTTP_AUTH_BACKEND` | `true` | Enables auth on backend |\n| `HTTP_AUTH_REALM` | `Restricted area` | Sets the [realm](http://tools.ietf.org/html/rfc1945#section-11) |\n| `HTTP_AUTH_TYPE` | `Basic` | Sets the auth method (may be `Digest` or `Basic`) |\n\nIf you choose the *Basic* auth method, passwords have to be hashed with MD5.\n\n```php\ndefine('HTTP_AUTH_USERS', 'my_user:a865a7e0ddbf35fa6f6a232e0893bea4'); // my_user:my_password\n```\n\nIf you use the *Digest* auth, they have to be stored in plaintext.\n\n```php\ndefine('HTTP_AUTH_USERS', 'my_user:my_password,my_user_2:my_password_2');\n```\n\n### `ip-restrictions.php`\n\nManages IP restrictions.\n\nDefine the allowed IP addresses, separated by `,`:\n\n```php\ndefine('IP_RESTRICTIONS_LIST', '127.0.0.1,12.34.56.78');\n// If the constant is omitted or empty, the plugin will do nothing\n```\n\nDefine when the IP restrictions should be applied *(optional)*:\n\n```php\ndefine('IP_RESTRICTIONS_FRONTEND', true); // Default is FALSE\ndefine('IP_RESTRICTIONS_BACKEND', true); // Default is TRUE\n```\n\nDefine a fallback *(optional)*:\n\n```php\n// You may set a message:\ndefine('IP_RESTRICTIONS_FALLBACK', '\u003ch1\u003eYou are not allowed to view this resource.\u003c/h1\u003e');\n\n// Or, set the path to a file which will be loaded (.html or .php):\ndefine('IP_RESTRICTIONS_FALLBACK', '/path/to/wordpress/wp-content/my-custom-error-page.php');\n\n// Default message is \"\u003ch1\u003e403 Forbidden\u003c/h1\u003e\"\n```\n\n### `jquery-to-footer.php`\n\nMoves jQuery and its dependencies in the footer.\n\nThe script moves the `/wp-includes/js/jquery/jquery.js` call in the footer.\n\nDon't forget to check that other jquery-dependant files are properly enqueued.\n\nAlso, please note that the `jquery-migrate` script is no longer loaded.\n\n### `mandatory-plugins.php`\n\nForces activation of specific plugins.\n\n#### Why\n\nSometimes we want specific plugins to be enabled no matter what. They can be:\n\n* Plugins needed by the theme\n* Libraries (like [ACF](www.advancedcustomfields.com))\n* Security plugins\n* And so on\n\nThis mu-plugin allows to set in the code a list of mandatory plugins, and for each one:\n\n* Activates it if needed, when WP loads\n* Removes its *Deactivate* link in the *Plugins* page\n* Blocks its manual deactivation\n\n\u003e :warning:\n\u003e\n\u003e When enabling plugins, WordPress checks their validity (if they are going to display notices or crash the website, for instance).\n\u003e\n\u003e This mu-plugin does not, so you should only use it with plugins that have already been tested in your project.\n\n#### Usage\n\nMandatory plugins are stored in the `MANDATORY_PLUGINS` constant.\n\n* Entries must be separated by a comma (`,`)\n* Each entry must point to a valid plugin file\n\nSample usage:\n\n```php\ndefine('MANDATORY_PLUGINS', implode(',', array(\n    'advanced-custom-fields/acf.php',\n    'visual-form-builder/visual-form-builder.php',\n    'better-search-replace/better-search-replace.php',\n)));\n```\n\n### `roles-loader.php`\n\nOverride easily user roles and menus.\n\nThe plugin tries to load a `roles.php` file in the `wp-content` directory.\n\nHere is a file example:\n\n```php\n\u003c?php\n\ndefined('ABSPATH') or die('Cheatin\\' uh?');\n\nreturn array(\n    'administrator' =\u003e array(\n        'name'         =\u003e 'Administrator',\n        'restricted_screens' =\u003e array(),\n        'capabilities' =\u003e array(\n            'activate_plugins'       =\u003e true,\n            'delete_others_pages'    =\u003e true,\n            'delete_others_posts'    =\u003e true,\n            'delete_pages'           =\u003e true,\n            // [...]\n            'create_users'           =\u003e true,\n            'delete_users'           =\u003e true,\n            'unfiltered_html'        =\u003e true\n        )\n    ),\n    'contributor' =\u003e array(\n        'name'         =\u003e 'Contributor',\n        'restricted_screens' =\u003e array(\n            'tools.php',\n            'themes.php:widgets.php'\n        ),\n        'capabilities' =\u003e array(\n            'delete_pages'           =\u003e true,\n            // [...]\n            'unfiltered_html'        =\u003e true\n        )\n    )\n);\n```\n\nThe file has to return an `array` of roles that are made of the following parameters:\n\n#### A name\n\nThe role name.\n\nFor now, the plugin does not allow to translate it.\n\n### A set of capabilities\n\nThe [capabilities](https://codex.wordpress.org/Roles_and_Capabilities#Capabilities) may be native ones,\nor specific to the application.\n\n#### A set of *restricted screens*\n\nSometimes capabilities can't target the pages we want to disable in the admin menu.\n\nIf so, it is possible to add them in the `restricted_screens` key of the needed role.\n\nThe entry has to be the path of the page. Here are some examples:\n\n* `tools.php`: The *Tools* first-level menu\n* `themes.php:widgets.php`: The *Widgets* page, in the *Appearance* first-level menu\n* `options-general.php:options-writing.php`: The *Writing page*, in the *Settings* first-level menu\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohansatge%2Fwp-awesomeness","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjohansatge%2Fwp-awesomeness","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohansatge%2Fwp-awesomeness/lists"}