42videobricks handles the complexity of video for you: no infrastructure required, no CapEx, no complexity!

Simply add our embed code to your WordPress site or service to add video.

If you don’t already have an API Key, you can sign up for a free sandbox account at  42videobricks.com.

'; } /** * Settings api key and env. */ function videobricks42_plugin_setting_api_key() { $options = get_option( 'videobricks42_plugin_options' ); $api_key = ''; if ( isset( $options['api_key'] ) ) { $api_key = $options['api_key']; } $html_content = ""; $allowed_html = array( 'input' => array( 'type' => array(), 'id' => array(), 'name' => array(), 'value' => array(), 'style' => array(), ), ); echo wp_kses( $html_content, $allowed_html ); } /** * Environment settings */ function videobricks42_plugin_setting_environment() { $options = get_option( 'videobricks42_plugin_options' ); if ( empty( $options ) ) { $html_content = ''; } else { $default_env = 'sandbox'; if ( ! empty( $options['env'] ) ) { $default_env = $options['env']; } // Defined options. $options = array( 'sandbox' => 'Sandbox', 'staging' => 'Staging', 'production' => 'Production', ); // escaped here. $html_options = esc_attr( '' ); foreach ( $options as $key => $value ) { $html_options .= sprintf( '', esc_attr( $key ), esc_html( $value ), selected( $default_env, esc_attr( $key ), false ) ); } $html_content = ''; } $allowed_html = array( 'select' => array( 'name' => array(), 'id' => array(), 'value' => array(), ), 'option' => array( 'value' => array(), 'selected' => array(), ), ); echo wp_kses( $html_content, $allowed_html ); } /** * Validation form settings. * * @param array $input Settings input. * @return mixed The input processed. */ function videobricks42_plugin_options_validate( $input ) { $input['api_key'] = sanitize_text_field( $input['api_key'] ); $input['env'] = sanitize_text_field( $input['env'] ); if ( empty( $input['api_key'] ) ) { add_settings_error( 'videobricks42_plugin_notice', 'api_key', 'Api key is not added Please fill in a correct apikey.' ); return $input; } $response = videobricks42_verify_request( $input['api_key'], $input['env'] ); if ( ! $response ) { add_settings_error( 'videobricks42_plugin_notice', 'api_key', 'Api key is not valid. Please fill in a correct apikey matching the selected environment.' ); return $input; } else { add_settings_error( 'videobricks42_plugin_notice', 'api_key', 'Api key valid!', 'success' ); } return $input; } /** * Render settings page. */ function videobricks42_api_render_settings_page() { ?>