2017 © Pedro Peláez
 

library wp-page-templates

A way of registering page templates from a plugin

image

moxie-leean/wp-page-templates

A way of registering page templates from a plugin

  • Monday, April 25, 2016
  • by moxieDeveloper
  • Repository
  • 4 Watchers
  • 0 Stars
  • 198 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 2 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

WP Page Templates: View

Provides functinos for registering a page template in a plugin., (*1)

Getting Started

The easiest way to install this package is by using composer from your terminal:, (*2)

composer require moxie-lean/wp-page-templates --save

Or by adding the following lines on your composer.json file, (*3)

"require": {
  "moxie-lean/wp-page-templates": "dev-master"
}

This will download the files from the packagist site and set you up with the latest version located on master branch of the repository., (*4)

After that you can include the autoload.php file in order to be able to autoload the class during the object creation., (*5)

include '/vendor/autoload.php';

Usage

Has just 1 function., (*6)

Register

Registers a new template. Takes the slug and name as arguments. Eg:, (*7)

\Lean\PageTemplates::register('training', 'Training');

The Versions

25/04 2016

dev-namespace-updates

dev-namespace-updates https://github.com/moxie-leean/wp-page-templates

A way of registering page templates from a plugin

  Sources   Download

MIT

The Requires

  • php >=5.4

 

The Development Requires

by Adam Fenton

wordpress

18/03 2016

dev-master

9999999-dev https://github.com/moxie-leean/wp-page-templates

A way of registering page templates from a plugin

  Sources   Download

MIT

The Requires

  • php >=5.4

 

The Development Requires

by Adam Fenton

wordpress

18/03 2016

0.1.0

0.1.0.0 https://github.com/moxie-leean/wp-page-templates

A way of registering page templates from a plugin

  Sources   Download

MIT

The Requires

  • php >=5.4

 

The Development Requires

by Adam Fenton

wordpress