WPF_USERREPUTATION::load_options()
Return Return
(array[])
Source Source
File: src/integrations/wpforo/actions/wpf-userreputation.php
public function load_options() { $reputation_options = array(); $levels = WPF()->member->levels(); foreach ( $levels as $level ) { $title = esc_attr__( 'Level', 'wpforo' ) . ' ' . $level . ' - ' . WPF()->member->rating( $level, 'title' ); $reputation_options[ 'L' . strval( $level ) ] = $title; } $option = array( 'option_code' => $this->action_meta, 'label' => esc_attr__( 'Reputation', 'uncanny-automator' ), 'input_type' => 'select', 'required' => true, 'options' => $reputation_options, ); return Automator()->utilities->keep_order_of_options( array( 'options' => array( $option, ), ) ); }
Expand full source code Collapse full source code View on Github