getFrontendSettings() ); $backendLabels = array_merge( BackendStrings::getNewFormStrings(), BackendStrings::getSettingsFormBuilderStrings(), BackendStrings::getResultsFormBuilderStrings(), BackendStrings::getEmptyStatesStrings(), BackendStrings::getEntityFormStrings(), BackendStrings::getAllFormsStrings(), BackendStrings::getDashboardStrings(), BackendStrings::getCommonStrings(), BackendStrings::getComponentsStrings(), BackendStrings::getEntriesStrings(), BackendStrings::getIntegrationsStrings(), BackendStrings::getExceptionStrings(), BackendStrings::getTemplateStrings(), BackendStrings::getSettingsStrings(), BackendStrings::getSecurityStrings(), BackendStrings::getProUpgradeDialogStrings(), BackendStrings::getChangelogStrings() ); /** * Filter backend labels before localizing * Allows Pro version to merge additional strings * * @since 0.1.0 * @param array $backendLabels Array of backend label strings */ $backendLabels = apply_filters('ivyforms/admin/backend_labels', $backendLabels); wp_localize_script( $scriptId, 'wpIvyLabels', $backendLabels ); wp_localize_script( $scriptId, 'wpIvyUrls', [ 'pluginURL' => IVYFORMS_URL, 'siteURL' => esc_url_raw(site_url()), ] ); wp_localize_script( $scriptId, 'wpIvyApiSettings', [ 'root' => esc_url_raw(rest_url()), 'nonce' => wp_create_nonce('wp_rest'), 'namespace' => Routes::$routeNamespace, ] ); wp_localize_script( $scriptId, 'wpIvyDateFormat', [ 'dateFormat' => get_option('date_format'), 'timeFormat' => get_option('time_format'), 'dateTimeFormat' => get_option('date_format') . ' ' . get_option('time_format'), 'locale' => get_locale(), ] ); /** * Hook to enqueue additional scripts and styles in admin area * @since 0.1.0 * * Arguments: * - string $scriptId The main script handle ID (for dependencies) */ do_action('ivyforms/admin/enqueue_scripts', $scriptId); include IVYFORMS_PATH . '/view/backend/view.php'; } }