Skip to content

Instantly share code, notes, and snippets.

View peterhebert's full-sized avatar

Peter Hebert peterhebert

View GitHub Profile
@peterhebert
peterhebert / CustomPost.php
Created March 23, 2018 16:17 — forked from dobbyloo/CustomPost.php
Wordpress: custom post wrapper class for "register_post_type" function.
<?php namespace PaintedCloud\WP\Classes;
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
class CustomPost {
protected $textdomain;
protected $posts;
public function __construct( $textdomain )