BBP_Converter::admin_head()
Admin scripts
Description Description
Source Source
File: includes/admin/classes/class-bbp-converter.php
public function admin_head() { // Enqueue scripts wp_enqueue_script( 'bbp-converter' ); // Localize JS wp_localize_script( 'bbp-converter', 'BBP_Converter', array( // Nonce 'ajax_nonce' => wp_create_nonce( 'bbp_converter_process' ), // UI State 'state' => array( 'delay' => (int) get_option( '_bbp_converter_delay_time', 2 ), 'started' => (bool) get_option( '_bbp_converter_step', 0 ), 'running' => false, 'status' => false, 'step_percent' => $this->step_percentage, 'total_percent' => $this->total_percentage ), // Strings 'strings' => array( // Button text 'button_start' => esc_html__( 'Start', 'bbpress' ), 'button_continue' => esc_html__( 'Continue', 'bbpress' ), // Start button clicked 'start_start' => esc_html__( 'Starting Import...', 'bbpress' ), 'start_continue' => esc_html__( 'Continuing Import...', 'bbpress' ), // Import 'import_complete' => esc_html__( 'Import Finished.', 'bbpress' ), 'import_stopped_user' => esc_html__( 'Import Stopped (by User.)', 'bbpress' ), 'import_error_halt' => esc_html__( 'Import Halted (Error.)', 'bbpress' ), 'import_error_db' => esc_html__( 'Database Connection Failed.', 'bbpress' ), // Status 'status_complete' => esc_html__( 'Finished', 'bbpress' ), 'status_stopped' => esc_html__( 'Stopped', 'bbpress' ), 'status_starting' => esc_html__( 'Starting', 'bbpress' ), 'status_up_next' => esc_html__( 'Doing step %s...', 'bbpress' ), 'status_counting' => esc_html__( 'Next in %s seconds...', 'bbpress' ) ) ) ); }
Changelog Changelog
Version | Description |
---|---|
2.1.0 | Introduced. |