acf/post_type/registration_args
acf/post_type/registration_args
Appears in: advanced-custom-fields.6.2.7
Hook Type: filter
Displaying hooks found in version: advanced-custom-fields.6.2.7apply_filters('acf/post_type/registration_args') is found 1 times:
- /includes/post-types/class-acf-post-type.php line 608605606607608609610611612613614
// ACF defaults to false, while WordPress defaults to omitting (deletes only if author support is added).
$args
[
'delete_with_user'
] = (bool)
$post
[
'delete_with_user'
];
return
apply_filters(
'acf/post_type/registration_args'
,
$args
,
$post
);
}
/**
* Returns a string that can be used to create a post type in PHP.
*
* @since 6.1