-
Notifications
You must be signed in to change notification settings - Fork 82
activitypub_post_type_description
github-actions[bot] edited this page Sep 18, 2025
·
15 revisions
Allow plugins to get the description of a post type.
/**
* Allow plugins to get the description of a post type.
*
* @param string $description
* @param string $post_type_name
* @param WP_Post_Type $post_type
* @return string The filtered value.
*/
function my_activitypub_post_type_description_callback( string $description, string $post_type_name, WP_Post_Type $post_type ) {
// Your code here.
return $description;
}
add_filter( 'activitypub_post_type_description', 'my_activitypub_post_type_description_callback', 10, 3 );
-
string
$description
The description of the post type. -
string
$post_type_name
The post type name. -
WP_Post_Type
$post_type
The post type object.
apply_filters( 'activitypub_post_type_description', $description, $post_type->name, $post_type )
Follow @[email protected] for updates and news.