get_the_categories

get_the_categories

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7.1

apply_filters('get_the_categories') is found 1 times:

  • /wp-includes/category-template.php line 98
    	 *
    	 * @param WP_Term[] $categories An array of categories to return for the post.
    	 * @param int|false $post_id    The post ID.
    	 */
    	return apply_filters( 'get_the_categories', $categories, $post_id );
    }
    
    /**
     * Retrieves category name based on category ID.
     *
     * @since 0.71