jetpack_sharing_twitter_via, , $post_id

jetpack_sharing_twitter_via, , $post_id

Appears in:
Hook Type: filter

See hook in core

Displaying hooks found in version: jetpack.16.0.1

apply_filters('jetpack_sharing_twitter_via, , $post_id') is found 1 times:

  • /jetpack_vendor/automattic/jetpack-post-media/src/class-twitter-cards.php line 56
     
    		// If we have information on the author/creator, then include that as well.
    		if ( ! empty( $post ) && ! empty( $post->post_author ) ) {
    			/** This action is documented in modules/sharedaddy/sharing-sources.php */
    			$handle = apply_filters( 'jetpack_sharing_twitter_via', '', $post_id );
    			if ( ! empty( $handle ) && ! self::is_default_site_tag( $handle ) ) {
    				$og_tags['twitter:creator'] = self::sanitize_twitter_user( $handle );
    			}
    		}
    
    		$site_tag = self::site_tag();