PHP code example of madeitbelgium / wordpress-eloquent

1. Go to this page and download the library: Download madeitbelgium/wordpress-eloquent library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

madeitbelgium / wordpress-eloquent example snippets


"madeitbelgium/wordpress-eloquent": "^1.0"



namespace App;

...
use MadeITBelgium\WPEloquent\Model\User as WPUser;
...

class User extends WPUser
{
  ...
}



namespace App;

use MadeITBelgium\WPEloquent\Model\Post;

class CustomPostType extends Post
{
    protected $post_type = 'custom_post_type';

}