Docblocks cleanup for WC_Post_types

This commit is contained in:
shivapoudel 2015-02-04 21:59:14 +05:45
parent fa6a99bd1d
commit d6b44d9369
1 changed files with 35 additions and 32 deletions

View File

@ -1,24 +1,27 @@
<?php <?php
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
/** /**
* Post types * Post Types
* *
* Registers post types and taxonomies * Registers post types and taxonomies
* *
* @class WC_Post_types * @class WC_Post_types
* @version 2.2.0 * @version 2.3.0
* @package WooCommerce/Classes/Products * @package WooCommerce/Classes/Products
* @category Class * @category Class
* @author WooThemes * @author WooThemes
*/ */
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/**
* WC_Post_types Class
*/
class WC_Post_types { class WC_Post_types {
/** /**
* Hook in methods * Hook in methods.
*/ */
public static function init() { public static function init() {
add_action( 'init', array( __CLASS__, 'register_taxonomies' ), 5 ); add_action( 'init', array( __CLASS__, 'register_taxonomies' ), 5 );
@ -28,7 +31,7 @@ class WC_Post_types {
} }
/** /**
* Register WooCommerce taxonomies. * Register core taxonomies.
*/ */
public static function register_taxonomies() { public static function register_taxonomies() {
if ( taxonomy_exists( 'product_type' ) ) { if ( taxonomy_exists( 'product_type' ) ) {
@ -210,7 +213,7 @@ class WC_Post_types {
} }
/** /**
* Register core post types * Register core post types.
*/ */
public static function register_post_types() { public static function register_post_types() {
if ( post_type_exists('product') ) { if ( post_type_exists('product') ) {
@ -404,7 +407,7 @@ class WC_Post_types {
} }
/** /**
* Register our custom post statuses, used for order status * Register our custom post statuses, used for order status.
*/ */
public static function register_post_status() { public static function register_post_status() {
register_post_status( 'wc-pending', array( register_post_status( 'wc-pending', array(
@ -466,7 +469,7 @@ class WC_Post_types {
} }
/** /**
* Add Product Support to Jetpack Omnisearch * Add Product Support to Jetpack Omnisearch.
*/ */
public static function support_jetpack_omnisearch() { public static function support_jetpack_omnisearch() {
if ( class_exists( 'Jetpack_Omnisearch_Posts' ) ) { if ( class_exists( 'Jetpack_Omnisearch_Posts' ) ) {