chore: remove helpers.php (#2917)
* chore: remove helpers.php * chore(docs): remove helpers.php reference from readme
This commit is contained in:
@@ -92,7 +92,6 @@ themes/your-theme-name/ # → Root of your Sage based theme
|
|||||||
│ ├── Providers/ # → Service providers
|
│ ├── Providers/ # → Service providers
|
||||||
│ ├── View/ # → View models
|
│ ├── View/ # → View models
|
||||||
│ ├── filters.php # → Theme filters
|
│ ├── filters.php # → Theme filters
|
||||||
│ ├── helpers.php # → Helper functions
|
|
||||||
│ └── setup.php # → Theme setup
|
│ └── setup.php # → Theme setup
|
||||||
├── composer.json # → Autoloading for `app/` files
|
├── composer.json # → Autoloading for `app/` files
|
||||||
├── public/ # → Built theme assets (never edit)
|
├── public/ # → Built theme assets (never edit)
|
||||||
|
|||||||
@@ -1,7 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Theme helpers.
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace App;
|
|
||||||
@@ -43,7 +43,7 @@ require $composer;
|
|||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
collect(['helpers', 'setup', 'filters'])
|
collect(['setup', 'filters'])
|
||||||
->each(function ($file) {
|
->each(function ($file) {
|
||||||
if (! locate_template($file = "app/{$file}.php", true, true)) {
|
if (! locate_template($file = "app/{$file}.php", true, true)) {
|
||||||
wp_die(
|
wp_die(
|
||||||
|
|||||||
Reference in New Issue
Block a user