Give_API_Keys_Table::bulk_actions PHP Method

bulk_actions() public method

Display the key generation form
Since: 1.1
public bulk_actions ( string $which = '' ) : void
$which string
return void
    function bulk_actions($which = '')
    {
        // These aren't really bulk actions but this outputs the markup in the right place
        static $give_api_is_bottom;
        if ($give_api_is_bottom) {
            return;
        }
        ?>
		<input type="hidden" name="give_action" value="process_api_key"/>
		<input type="hidden" name="give_api_process" value="generate"/>
		<?php 
        wp_nonce_field('give-api-nonce');
        ?>
		<?php 
        echo Give()->html->ajax_user_search();
        ?>
		<?php 
        submit_button(esc_html__('Generate New API Keys', 'give'), 'secondary', 'submit', false);
        ?>
		<?php 
        $give_api_is_bottom = true;
    }