wp_count_attachments

wp_count_attachments

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

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('wp_count_attachments') is found 1 times:

  • /wp-includes/post.php line 3413
    3409
    3410
    3411
    3412
    3413
    3414
    3415
    3416
    3417
    3418
    3419
         * @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