Releases: WPExtension/MVCExtension
MVCExtension a Wordpress Plugin MVC Framework
wpbb[dot]me Plugin Boilerplate
CMB2 Custom field By CMB2 team
Application Password (BasicAuth REST_API Authentication) By George Stephanis
REMOVED JWT Auth
Full Changelog: v1.8.0.0...v1.8.3.0
MVCExtension a Wordpress Plugin MVC Framework
WP Extension is a WordPress MVC framework. Design to build backend application wp plugin and theme maintainable and secure codes.
Package WP Plugin Included installed with MVCExtension :
wpbb[dot]me Plugin Boilerplate
CMB2 Custom field By CMB2 team
Application Password (BasicAuth REST_API Authentication) By George Stephanis
JWT Authentication for WP REST API (Bearer REST_API Authentication) By Enrique Chavez
Full Changelog: v1.5.0.1...v1.8.0.0
MVCExtension a Wordpress Plugin MVC Framework
Package WP Plugin Included installed with MVCExtension :
Application Password (REST_API Authentication) By George Stephanis
CMB2 Custom field By CMB2 team
Full Changelog: v1.5.0.0...v1.5.0.1
MVCExtension a Wordpress Plugin MVC Framework
Invoke anonymous class bootstrap file
Full Changelog: v1.0.0...v1.5.0.0
MVCExtension a Wordpress Plugin MVC Framework
// from sync_function call back
function your_plugin_dashboard( ) {
$about = new WayPoint('pages','about');
if( $about->isValidPage() ) {
$about->call('about_mvc_callback_content');
} else {
$setting = new WayPoint('pages','settings');
if( $setting->isValidPage() ) {
echo 'Setting page';
} else {
$home = new WayPoint();
if( !$home->isValidPage() ) {
$home->call('home_mvc_callback_content');
}
}
}
}
// Controller
<?php
namespace PHPAutoloader\Classes\controllers;
use \PHPAutoloader\Classes\libraries\Controller;
use \PHPAutoloader\Classes\models\Post;
class MVCExtension extends Controller {
private $postModel;
public function __construct() {
$this->postModel = new Post();
add_action('home_mvc_callback_content', [$this,'home_content_extension']);
add_action('about_mvc_callback_content',[$this,'about_content_extension']);
}
public function home_content_extension() {
$all = $this->postModel->getPosts();
$data = [
'title' => 'Welcome to Home page',
'description' => 'This is frist app mvc share post' ,
'id' => $all
];
// echo 'Index page load Controller' ;
$this->view('pages/index', $data );
}
public function about_content_extension() {
$all = $this->postModel->getPosts();
$data = [
'title' => 'Welcome to About page',
'description' => 'This is frist app mvc share post' ,
'id' => $all
];
// echo 'Index page load Controller' ;
$this->view('pages/about', $data );
}
}
MVCExtension
WP Extension is a WordPress MVC framework. Design to build application wp plugin maintainable and secure codes.