wpseo_opengraph_image_width

wpseo_opengraph_image_width

Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-seo.24.8.1

apply_filters('wpseo_opengraph_image_width') is found 1 times:

  • /src/presenters/open-graph/image-presenter.php line 129
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    *
     * @param int                    $image_width  The width of the Open Graph image.
     * @param Indexable_Presentation $presentation The presentation of an indexable.
     */
    $image_width = (int) \apply_filters( 'wpseo_opengraph_image_width', $image_width, $this->presentation );
    if ( ! empty( $image_width ) && $image_width > 0 ) {
        $image['width'] = $image_width;
    }
    else {
        $image['width'] = '';
    }