array( 'affected_fields' => array( 'text_text_align' => $this->get_modules(), ), ), ); } /** * Get all modules affected. * * @since 3.27.4 * * @return array */ public function get_modules() { return array( 'et_pb_text' ); } public function migrate( $field_name, $current_value, $module_slug, $saved_value, $saved_field_name, $attrs, $content, $module_address ) { // Don't migrate empty value. return ! empty( $current_value ) ? $current_value : $saved_value; } } return new ET_Builder_Module_Settings_Migration_TextAlignment();