wp_theme_json_data_user

wp_theme_json_data_user

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('wp_theme_json_data_user') is found 2 times:

  • /wp-includes/class-wp-theme-json-resolver.php line 572
    568
    569
    570
    571
    572
    573
    574
    575
    576
    577
    578
    * @since 6.1.0
     *
     * @param WP_Theme_JSON_Data $theme_json Class to access and update the underlying data.
     */
    $theme_json = apply_filters( 'wp_theme_json_data_user', new WP_Theme_JSON_Data( $config, 'custom' ) );
     
    /*
     * Backward compatibility for extenders returning a WP_Theme_JSON_Data
     * compatible class that is not a WP_Theme_JSON_Data object.
     */
    if ( $theme_json instanceof WP_Theme_JSON_Data ) {
  • /wp-includes/class-wp-theme-json-resolver.php line 601
    597
    598
    599
    600
    601
    602
    603
    604
    605
    606
    607
        }
    }
     
    /** This filter is documented in wp-includes/class-wp-theme-json-resolver.php */
    $theme_json = apply_filters( 'wp_theme_json_data_user', new WP_Theme_JSON_Data( $config, 'custom' ) );
     
    /*
     * Backward compatibility for extenders returning a WP_Theme_JSON_Data
     * compatible class that is not a WP_Theme_JSON_Data object.
     */
    if ( $theme_json instanceof WP_Theme_JSON_Data ) {

See this hook used in plugins: