Skip to content

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.

Auto-generated Example

/**
 * 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 );

Parameters

  • 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.

Files

apply_filters( 'activitypub_post_type_description', $description, $post_type->name, $post_type )

← All Hooks

Users

Developers

Clone this wiki locally