wp_count_attachments

wp_count_attachments

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

See hook in core

Displaying hooks found in version: wordpress-6.4.3

apply_filters('wp_count_attachments') is found 1 times:

  • /wp-includes/post.php line 3157
    	 * @param stdClass        $counts    An object containing the attachment counts by
    	 *                                   mime type.
    	 * @param string|string[] $mime_type Array or comma-separated list of MIME patterns.
    	 */
    	return apply_filters( 'wp_count_attachments', (object) $counts, $mime_type );
    }
    
    /**
     * Gets default post mime types.
     *
     * @since 2.9.0