trzeba to dodać na końcu functions.php danego motywu, żeby się elementor nie pruł o updatety
function disable_plugin_updates_idc( $value ) {
if ( isset( $value->response['elementor/elementor.php'] ) ) {
unset( $value->response['elementor/elementor.php'] );
}
return $value;
}
add_filter( 'site_transient_update_plugins', 'disable_plugin_updates_idc' );
/*This will code will notify Auto-updates disabled */
function filter_plugin_auto_update( $update, $item ) {
if ( isset( $item->plugin ) && $item->plugin === 'elementor/elementor.php' ) {
return false;
}
return $update;
}
add_filter( 'auto_update_plugin', 'filter_plugin_auto_update', 10, 2 );
function disable_plugin_updates_idc2( $value ) {
if ( isset( $value->response['elementor-pro/elementor-pro.php'] ) ) {
unset( $value->response['elementor-pro/elementor-pro.php'] );
}
return $value;
}
add_filter( 'site_transient_update_plugins', 'disable_plugin_updates_idc2' );
/*This will code will notify Auto-updates disabled */
function filter_plugin_auto_update2( $update, $item ) {
if ( isset( $item->plugin ) && $item->plugin === 'elementor-pro/elementor-pro.php' ) {
return false;
}
return $update;
}
add_filter( 'auto_update_plugin', 'filter_plugin_auto_update2', 10, 2 );