public function getDefaults()
    {
        global $user;
        return array(
            'post_type'     => $this->getPostType(),
            'post_author'   => (is_object($user)) ? $user->ID : null,
            'post_date'     => current_time('mysql'),
            'post_category' => array(0),
            'post_status'   => 'publish'
        );
    }
public function getDefaults()
    {
        global $user;
        return array(
            'post_type'     => $this->getPostType(),
            'post_author'   => (is_object($user)) ? $user->ID : null,
            'post_date'     => current_time('mysql'),
            'post_category' => array(0),
            'post_status'   => 'publish'
        );
    }
public function getDefaults ( ) { global $ user ; return array ( 'post_type' => $ this -> getPostType ( ) , 'post_author' => ( is_object ( $ user ) ) ? $ user -> ID : null , 'post_date' => current_time ( 'mysql' ) , 'post_category' => array ( 0 ) , 'post_status' => 'publish' ) ; }
Get default values
Override this
@return array
Get default values Override this