Skip to content Skip to sidebar

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

This topic contains 1 replies, has 0 voices.

Last updated by Dražen 2 weeks, 3 days ago.

Author Posts
December 13, 2025 at 10:12 pm #17661733

Adam Laita

WPML blocks apiVersion are set to 1 which is a bit of a problem because from WP 6.9 it's not recommend it and from 7.0 it will be deprecated. If some block has smaller version than 3 it won't allow iframe mode in Gutenberg (block editor) and it's problem for my custom styles.

I have workaround for now:

add_filter( 'register_block_type_args', function( $args, $name ) {
if ( str_starts_with( $name, 'wpml/' ) ) {
$args['api_version'] = 3;
}
return $args;
}, 10, 2 );

But it needs to be changed. Can you look at it?

December 15, 2025 at 9:07 am #17663172

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hello,

Thank you for reporting this.

Yes, we’re aware of the issue, and a fix is scheduled for WPML 4.10, which is planned to be released in time.

Once the update is available, please check if the issue is resolved on your site. If you continue to experience any problems, feel free to let us know.

Kind regards,
Dražen

The topic ‘[Closed] Blocks apiVersion’ is closed to new replies.