chore: remove helpers.php (#2917)

* chore: remove helpers.php

* chore(docs): remove helpers.php reference from readme
This commit is contained in:
Brandon
2022-01-02 14:11:43 -06:00
committed by GitHub
parent 0cea0c3c86
commit ee889edf16
3 changed files with 1 additions and 9 deletions

View File

@@ -92,7 +92,6 @@ themes/your-theme-name/ # → Root of your Sage based theme
│ ├── Providers/ # → Service providers
│ ├── View/ # → View models
│ ├── filters.php # → Theme filters
│ ├── helpers.php # → Helper functions
│ └── setup.php # → Theme setup
├── composer.json # → Autoloading for `app/` files
├── public/ # → Built theme assets (never edit)

View File

@@ -1,7 +0,0 @@
<?php
/**
* Theme helpers.
*/
namespace App;

View File

@@ -43,7 +43,7 @@ require $composer;
|
*/
collect(['helpers', 'setup', 'filters'])
collect(['setup', 'filters'])
->each(function ($file) {
if (! locate_template($file = "app/{$file}.php", true, true)) {
wp_die(