api1881.no %s', esc_html__( 'To find or generate a subscription key, log into', '1881-number-lookup' ), \esc_url( 'https://www.api1881.no/' ), esc_html__( 'and navigate to your profile to find your subscriptions. Either create a new set of API keys, or provide the primary key for an existing one.', '1881-number-lookup' ) ); ?>
%s
', \wp_kses_post( $args['description'] ) ); } } /*** * Output standard textarea element. * * @param array $args Arguments to setting. */ function setting_textarea_element_callback( array $args ) { $id = $args['id']; $width = ! empty( $args['width'] ) ? $args['width'] : ''; $height = ! empty( $args['height'] ) ? $args['height'] : ''; $options = \get_option( $args['menu'] ); if ( isset( $options[ $id ] ) ) { $current = $options[ $id ]; } else { $current = isset( $args['default'] ) ? $args['default'] : ''; } \printf( '%3$s', \esc_attr( $id ), \esc_attr( $args['menu'] ), \wp_kses_post( $current ), \esc_attr( $width ), \esc_attr( $height ) ); if ( isset( $args['description'] ) ) { \printf( '%s
', \wp_kses_post( $args['description'] ) ); } } /*** * Sanitize settings. * * @param array $input Settings fields to sanitize. * @return array */ function sanitize_settings( array $input ): array { $output = []; foreach ( $input as $key => $value ) { if ( isset( $input[ $key ] ) ) { if ( \is_array( $input[ $key ] ) ) { foreach ( $input[ $key ] as $sub_key => $sub_value ) { $output[ $key ][ $sub_key ] = \sanitize_text_field( $input[ $key ][ $sub_key ] ); } } else { $output[ $key ] = \sanitize_text_field( $input[ $key ] ); } } } return \apply_filters( 'dm1881_settings_validate_input', $output, $input ); }