jetpack_dtp_fb_media

jetpack_dtp_fb_media

Hook Type: action

See hook in core

Displaying hooks found in version: jetpack.14.0

do_action('jetpack_dtp_fb_media') is found 1 times:

  • /json-endpoints/class.wpcom-json-api-update-post-v1-2-endpoint.php line 575
    		 * @param array $media_results
    		 *  - media_ids: IDs created, by index in `$media_files`/`$media_urls`.
    		 *  - errors: Errors encountered, by index in `$media_files`/`$media_urls`.
    		 */
    		do_action( 'jetpack_dtp_fb_media', $is_dtp_fb_post, $blog_id, $input, $media_files, $media_urls, $media_attrs, $media_results );
    
    		if ( $new ) {
    			if ( isset( $input['content'] ) && ! has_shortcode( $input['content'], 'gallery' ) && ( $has_media || $has_media_by_url ) ) {
    				switch ( ( $has_media + $has_media_by_url ) ) {
    					case 0:
    						// No images - do nothing.