jetpack_social_image_generator_disable_text

jetpack_social_image_generator_disable_text

Appears in:
Hook Type: filter

See hook in core

Displaying hooks found in version: jetpack.16.0

apply_filters('jetpack_social_image_generator_disable_text') is found 1 times:

  • /jetpack_vendor/automattic/jetpack-publicize/src/social-image-generator/class-post-settings.php line 108
    		 *
    		 * @param bool $disable_text Whether to disable the text overlay. Default false.
    		 * @param int  $post_id      The Post ID.
    		 */
    		if ( apply_filters( 'jetpack_social_image_generator_disable_text', false, $this->post_id ) ) {
    			return '';
    		}
    
    		if ( ! empty( $this->settings['custom_text'] ) ) {
    			return $this->settings['custom_text'];
    		}