for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace testContent\Abstracts;
/**
* Class to generate a type for the admin page.
*
* @abstract
* @package WordPress
* @subpackage Test Content
* @author Old Town Media
*/
abstract class Type{
* type
* Type of objects we'll be dealing with i.e.: post or term.
* @var string
* @access protected
protected $type;
public function register_type(){
add_action( 'tc_types', 'set_type' );
}
public function set_type( $types ){
$types[] = $this->type;
return $types;