MortgageNews_Websites
Class MortgageNews_Websites.
Contents
Description Description
See also See also
Source Source
File: mortgage-news-widget/inc/MortgageNews_Websites.php
class MortgageNews_Websites extends MP_Websites{
/**
* MortgageNews_Widgets constructor.
*
* @see 'MP_Websites::__construct()'
*
* @access public
* @since 1.0.0
*/
public function __construct() {
parent::__construct();
$this->website_post_type = 'mn_embedd_websites';
}
/**
* Register Website post type.
*
* @see 'MP_Websites::register()'
*
* @access public
* @since 1.0.0
* @return \WP_Error|\WP_Post_Type
*/
public function register() {
return $this->_register($this->website_post_type, 'mortgage_news_widget');
}
}
Methods Methods
- __construct — MortgageNews_Widgets constructor.
- register — Register Website post type.
Changelog Changelog
| Version | Description |
|---|---|
| 1.0.0 | Introduced. |