WordPress – wp-config.php essential constants

define( 'WP_SITEURL', 'http://example.com' );
define( 'WP_HOME', 'http://example.com' );

// Disable the Plugin and Theme Editor.
// @see https://wordpress.org/support/article/editing-wp-config-php/#disable-the-plugin-and-theme-editor
define( 'DISALLOW_FILE_EDIT', true );
// Disable Plugin and Theme Update and Installation
// @see https://wordpress.org/support/article/editing-wp-config-php/#disable-plugin-and-theme-update-and-installation
define( 'DISALLOW_FILE_MODS', true );

PHPStorm + WordPress – File and Code Templates

  /**
   * ${NAME}.php file summary.
   *
   * ${NAME}.php file description.
   *
   * @link       https://project.com
   *
   * @package    Project
#if (${NAMESPACE} && ${NAMESPACE} != '' && ${NAMESPACE} != ${NAME})   * @subpackage ${NAMESPACE}
#end
   * @author     Arvil Meña <arvil@arvilmena.com>
   * @license    https://www.gnu.org/licenses/gpl-3.0.txt GNU/GPLv3
   * @since      1.0.0
   */

declare(strict_types=1);

WordPress – composer.json template

{
    "name": "arvil/wordpress",
    "description": "Probably doing freelancing again",
    "repositories":[
        {
            "type":"composer",
            "url":"https://wpackagist.org"
        }
    ],
    "require": {
    },
    "extra": {
        "installer-paths": {
            "public/wp-content/plugins/{$name}/": ["type:wordpress-plugin"],
            "public/wp-content/themes/{$name}/": ["type:wordpress-theme"]
        },
        "wordpress-install-dir": "public"
    }
}