Skip to content

Commit

Permalink
Code standards.
Browse files Browse the repository at this point in the history
  • Loading branch information
johnbillion committed Dec 20, 2015
1 parent 6010f55 commit 6f59895
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions extended-cpts.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,23 +118,27 @@ class Extended_CPT {
/**
* Class constructor.
*
* @see register_extended_post_type()
*
* @param string $post_type The post type name.
* @param array $args Optional. The post type arguments. {@see register_extended_post_type()}.
* @param array $names Optional. The plural, singular, and slug names. {@see register_extended_post_type()}.
* @param array $args Optional. The post type arguments.
* @param array $names Optional. The plural, singular, and slug names.
*/
public function __construct( $post_type, array $args = array(), array $names = array() ) {

/**
* Filter the arguments for this post type.
*
* @since 2.4.0
*
* @param array $args The post type arguments.
*/
$args = apply_filters( "ext-cpts/{$post_type}/args", $args );
/**
* Filter the names for this post type.
*
* @since 2.4.0
*
* @param array $names The plural, singular, and slug names (if any were specified).
*/
$names = apply_filters( "ext-cpts/{$post_type}/names", $names );
Expand Down

0 comments on commit 6f59895

Please sign in to comment.