' .
esc_html__( 'Turn-on Beta Tester, to get notified when a new beta version of Elementor or Elementor Pro is available. The Beta version will not install automatically. You always have the option to ignore it.', 'elementor' ) .
'
';
echo '
' . sprintf(
/* translators: 1: Link open tag, 2: Link close tag. */
esc_html__( '%1$sClick here%2$s %3$sto join our first-to-know email updates.%4$s', 'elementor' ),
'',
'',
'',
'',
) . '
';
},
'fields' => [
'beta' => [
'label' => esc_html__( 'Beta Tester', 'elementor' ),
'field_args' => [
'type' => 'select',
'std' => 'no',
'options' => [
'no' => esc_html__( 'Disable', 'elementor' ),
'yes' => esc_html__( 'Enable', 'elementor' ),
],
'desc' => '' . esc_html__( 'Please Note: We do not recommend updating to a beta version on production sites.', 'elementor' ) . '',
],
],
],
],
],
],
];
if ( ! Plugin::$instance->kits_manager->get_active_kit()->get_id() ) {
$tabs['general']['sections']['tools']['fields']['recreate_kit'] = [
'label' => esc_html__( 'Recreate Kit', 'elementor' ),
'field_args' => [
'type' => 'raw_html',
'html' => sprintf( '', wp_create_nonce( 'elementor_recreate_kit' ), esc_html__( 'Recreate Kit', 'elementor' ) ),
'desc' => esc_html__( 'It seems like your site doesn\'t have any active Kit. The active Kit includes all of your Site Settings. By recreating your Kit you will able to start edit your Site Settings again.', 'elementor' ),
],
];
}
return $tabs;
}
/**
* Get tools page title.
*
* Retrieve the title for the tools page.
*
* @since 1.5.0
* @access protected
*
* @return string Tools page title.
*/
protected function get_page_title() {
return esc_html__( 'Tools', 'elementor' );
}
/**
* Check if the current user can access the version control tab and rollback versions.
*
* @return bool
*/
public static function can_user_rollback_versions() {
return current_user_can( 'activate_plugins' ) && current_user_can( 'update_plugins' );
}
/**
* Check if the beta tester should be displayed.
*
* @since 3.19.0
*
* @return bool
*/
public function display_beta_tester(): bool {
$display_beta_tester = true;
/**
* Filter to allow override the display of the beta tester.
*
* @param bool $display_beta_tester Whether to display the beta tester.
*
* @since 3.19.0
*
* return bool
*/
return apply_filters( 'elementor/admin/show_beta_tester', $display_beta_tester );
}
}