widget_{$this->id_base}_instance_schema

widget_{$this->id_base}_instance_schema

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

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('widget_{$this->id_base}_instance_schema') is found 2 times:

  • /wp-includes/widgets/class-wp-widget-media-gallery.php line 101
    097
    098
    099
    100
    101
    102
    103
    104
    105
    106
    107
            ),
        );
     
        /** This filter is documented in wp-includes/widgets/class-wp-widget-media.php */
        $schema = apply_filters( "widget_{$this->id_base}_instance_schema", $schema, $this );
     
        return $schema;
    }
     
    /**
     * Render the media on the frontend.
  • /wp-includes/widgets/class-wp-widget-media.php line 172
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
         *
         * @param array           $schema Instance schema.
         * @param WP_Widget_Media $widget Widget object.
         */
        $schema = apply_filters( "widget_{$this->id_base}_instance_schema", $schema, $this );
     
        return $schema;
    }
     
    /**
     * Determine if the supplied attachment is for a valid attachment post with the specified MIME type.