Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
BBP_Converter::setup_options()
Setup converter options
Description Description
Source Source
File: includes/admin/classes/class-bbp-converter.php
private function setup_options() { // Set starting point & rows $this->step = (int) get_option( '_bbp_converter_step', 1 ); $this->start = (int) get_option( '_bbp_converter_start', 0 ); $this->rows = (int) get_option( '_bbp_converter_rows', 100 ); $this->rows_in_step = (int) get_option( '_bbp_converter_rows_in_step', 0 ); // Set boundaries $this->max = ( $this->start + $this->rows ) - 1; // Set platform $this->platform = get_option( '_bbp_converter_platform' ); // Total percentage $this->total_percentage = round( ( $this->step / $this->max_steps ) * 100, 2 ); // Total mini steps if ( $this->rows_in_step > 0 ) { $total_mini_steps = ceil( $this->rows_in_step / $this->rows ); $current_mini_step = ceil( $this->start / $this->rows ); $this->step_percentage = round( ( $current_mini_step / $total_mini_steps ) * 100, 2 ); } else { $this->step_percentage = 0; } // Maybe include the appropriate converter. if ( ! empty( $this->platform ) ) { $this->converter = bbp_new_converter( $this->platform ); } }
Changelog Changelog
Version | Description |
---|---|
2.6.0 | Introduced. |