WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )
apply_filters( "hook_name", "what_to_filter" )
.Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
Line | Code |
---|---|
2767 |
|
2768 | $total_inline_limit = 20000; |
2769 | /** |
2770 | * The maximum size of inlined styles in bytes. |
2771 | * |
2772 | * @since 5.8.0 |
2773 | * |
2774 | * @param int $total_inline_limit The file-size threshold, in bytes. Default 20000. |
2775 | */ |
2776 | $total_inline_limit = apply_filters( 'styles_inline_size_limit', $total_inline_limit ); |
2777 |
|
2778 | $styles = array(); |
2779 |
|
2780 | // Build an array of styles that have a path defined. |
2781 | foreach ( $wp_styles->queue as $handle ) { |
2782 | if ( wp_styles()->get_data( $handle, 'path' ) && file_exists( $wp_styles->registered[ $handle ]->extra['path'] ) ) { |
2783 | $styles[] = array( |
2784 | 'handle' => $handle, |
2785 | 'src' => $wp_styles->registered[ $handle ]->src, |