Skip to content

WordPress function includes for the backend and model boilerplate/s, based on Sage9 functions.php and PSR-2 coding standards

Notifications You must be signed in to change notification settings

sbarry50/wordpress-includes

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

WordPress Function Includes

Remove, add and update WordPress function.php includes.

Based on Sage9, so the includes are moved to src/backend/ and src/models/ and then included in the themes functions.php file.

$backend_includes = [
    'src/backend/add-dashboard-item.php',
    'src/backend/add-dashboard-redirect.php',
    'src/backend/add-svg-upload.php',
    'src/backend/remove-dashboard-items.php',
    'src/backend/remove-default-taxonomies.php',
    'src/backend/remove-default-taxonomy-category.php',
    'src/backend/remove-default-taxonomy-tag.php',
    'src/backend/remove-emoji-icons.php',
    'src/backend/remove-help-tabs.php',
    'src/backend/remove-howdy.php',
    'src/backend/remove-menu-items.php',
    'src/backend/remove-singular-support.php',
    'src/backend/remove-toolbar-frontend.php',
    'src/backend/remove-toolbar-items.php',
    'src/backend/remove-update-notice.php',
    'src/backend/remove-user-fields.php',
    'src/backend/remove-user-schemes.php',
    'src/backend/remove-user-roles.php',
    'src/backend/update-dashboard-columns.php',
    'src/backend/update-footer-label.php',
    'src/backend/update-page-label.php',
    'src/backend/update-post-label.php',
    'src/backend/update-media-label.php'
];

$model_includes = [
    'src/models/acf-options.php',
    'src/models/custom-post-type.php',
    'src/models/custom-taxonomy.php',
    'src/models/navigation-primary.php'
];

$includes = array_merge($sage_includes, $model_includes, $backend_includes);

Structure

wordpress-includes/
├── backend/
│   ├── add-dashboard-item.php
│   ├── add-dashboard-redirect.php
│   ├── add-svg-upload.php
│   ├── remove-dashboard-items.php
│   ├── remove-default-taxonomies.php
│   ├── remove-default-taxonomy-category.php
│   ├── remove-default-taxonomy-tag.php
│   ├── remove-emoji-icons.php
│   ├── remove-help-tabs.php
│   ├── remove-howdy.php
│   ├── remove-menu-items.php
│   ├── remove-singular-support.php
│   ├── remove-toolbar-frontend.php
│   ├── remove-toolbar-items.php
│   ├── remove-update-notice.php
│   ├── remove-user-fields.php
│   ├── remove-user-roles.php
│   ├── remove-user-schemes.php
│   ├── update-dashboard-columns.php
│   ├── update-footer-label.php
│   ├── update-media-label.php
│   ├── update-page-label.php
│   └── update-post-label.php
└── models/
    ├── acf-options.php
    ├── custom-post-type.php
    ├── custom-taxonomy.php
    └── navigation-primary.php

About

WordPress function includes for the backend and model boilerplate/s, based on Sage9 functions.php and PSR-2 coding standards

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%