WC_Settings_API::admin_options PHP Method

admin_options() public method

Output the admin options table.
public admin_options ( )
    public function admin_options()
    {
        echo '<table class="form-table">' . $this->generate_settings_html($this->get_form_fields(), false) . '</table>';
    }

Usage Example

コード例 #1
0
 /**
  * Output the gateway settings screen.
  */
 public function admin_options()
 {
     echo '<h2>' . esc_html($this->get_method_title()) . '</h2>';
     echo wp_kses_post(wpautop($this->get_method_description()));
     parent::admin_options();
 }