Skip to content

Commit

Permalink
add missing tr_post_type() helper param
Browse files Browse the repository at this point in the history
  • Loading branch information
robojuicedev committed Feb 9, 2021
1 parent ae61c13 commit 2f24559
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -252,10 +252,11 @@ function tr_taxonomy($singular, $plural = null, $settings = [])
* @param string $singular Singular name for post type
* @param string|null $plural Plural name for post type
* @param array $settings The settings for the post type
* @param string|null $id post type ID
*
* @return \TypeRocket\Register\PostType
*/
function tr_post_type($singular, $plural = null, $settings = [])
function tr_post_type($singular, $plural = null, $settings = [], $id = null )
{
return \TypeRocket\Register\PostType::add(...func_get_args());
}
Expand Down

0 comments on commit 2f24559

Please sign in to comment.