array_get( $attrs, $source_key, '' ); $attachment_id = et_get_attachment_id_by_url( $attachment_src ); } // 1.b. Generate attachment ID class. if ( $attachment_id > 0 ) { $attachment_class = "wp-image-{$attachment_id}"; } return $attachment_class; } }