Skip to content

Commit

Permalink
[docs] Fix documentation for editRegistrationArgs
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreasMaros committed Jun 8, 2022
1 parent 49e3c7f commit 46b66c1
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,16 +142,14 @@ class NewsPostType extends PostType
* type definitions it uses the PostTypeRegistrationArgs configuration
* object.
* To modify the arguments passed to `register_post_type` you can override
* the method getRegistrationArgs() and call the fluent setters on the
* the method editRegistrationArgs() and call the fluent setters on the
* PostTypeRegistrationArgs object provided.
*/

/**
* Modify the arguments for the post type's registration call.
*
* @return array
*/
protected function getRegistrationArgs(PostTypeRegistrationArgs $args): PostTypeRegistrationArgs
protected function editRegistrationArgs(PostTypeRegistrationArgs $args): PostTypeRegistrationArgs
{
$args->addAuthorSupport();
// Setters in PostTypeRegistrationArgs can be chained:
Expand Down

0 comments on commit 46b66c1

Please sign in to comment.