diff --git a/src/Admin/AdminModule.php b/src/Admin/AdminModule.php index 338f7df0..13cf04b2 100644 --- a/src/Admin/AdminModule.php +++ b/src/Admin/AdminModule.php @@ -201,52 +201,6 @@ public function maybe_redirect() { exit; } - /** - * Input checkbox. - * - * @param array $args Arguments. - * @return void - */ - public static function input_checkbox( $args ) { - $defaults = [ - 'label_for' => '', - 'type' => 'text', - 'label' => '', - ]; - - $args = wp_parse_args( $args, $defaults ); - - $id = $args['label_for']; - $value = get_option( $id ); - - $legend = sprintf( - '%s', - esc_html( $args['label'] ) - ); - - $input = sprintf( - '', - esc_attr( $id ), - esc_attr( $id ), - esc_attr( 'checkbox' ), - esc_attr( '1' ), - checked( $value, true, false ) - ); - - $label = sprintf( - '', - esc_attr( $id ), - $input, - esc_html( $args['label'] ) - ); - - printf( - '
%s %s
', - $legend, - $label - ); - } - /** * Sanitize the specified value to a boolean. *