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 |
---|---|
92 | /** |
93 | * Fires when a requested block template part does not exist in the database nor in the theme. |
94 | * |
95 | * @since 5.9.0 |
96 | * |
97 | * @param string $template_part_id The requested template part namespaced to the theme. |
98 | * @param array $attributes The block attributes. |
99 | * @param string $template_part_file_path Absolute path to the not found template path. |
100 | */ |
101 | do_action( 'render_block_core_template_part_none', $template_part_id, $attributes, $template_part_file_path ); |
102 | } |
103 | } |
104 | } |
105 |
|
106 | // WP_DEBUG_DISPLAY must only be honored when WP_DEBUG. This precedent |
107 | // is set in `wp_debug_mode()`. |
108 | $is_debug = WP_DEBUG && WP_DEBUG_DISPLAY; |
109 |
|
110 | if ( is_null( $content ) && $is_debug ) { |