array( 'top' => 10, 'right' => 0, 'bottom' => 10, 'left' => 0, ) ); /** * Initialize the API. * * @param ITSEC_Recaptcha $recaptcha */ public static function init( ITSEC_Recaptcha $recaptcha ) { self::$recaptcha = $recaptcha; /** * Fires when the Recaptcha API is ready to be used. */ do_action( 'itsec_recaptcha_api_ready' ); } /** * Is the API available. * * @return bool */ public static function is_available() { return (bool) self::$recaptcha; } /** * Display the Recaptcha field. * * @param array $args * * @return void */ public static function display( array $args ) { echo self::render( $args ); } /** * Render the Recaptcha field. * * This will enqueue a couple of JavaScript files which will be printed in the footer. * If you are loading this over Ajax, you may need to manually call wp_print_scripts() to * add the