/** * Display the API Keys * * @since 2.0 * @return void */ function edd_tools_api_keys_display() { do_action('edd_tools_api_keys_before'); require_once EDD_PLUGIN_DIR . 'includes/admin/class-api-keys-table.php'; $api_keys_table = new EDD_API_Keys_Table(); $api_keys_table->prepare_items(); $api_keys_table->display(); ?> <p> <?php printf(__('These API keys allow you to use the <a href="%s">EDD REST API</a> to retrieve store data in JSON or XML for external applications or devices, such as the <a href="%s">EDD mobile apps</a>.', 'edd'), 'https://easydigitaldownloads.com/docs/edd-api-reference/', 'https://easydigitaldownloads.com/blog/extensions/categories/mobile/'); ?> </p> <?php do_action('edd_tools_api_keys_after'); }
/** * Display the API Keys * * @since 2.0 * @return void */ function edd_tools_api_keys_display() { if (!current_user_can('manage_shop_settings')) { return; } do_action('edd_tools_api_keys_before'); require_once EDD_PLUGIN_DIR . 'includes/admin/class-api-keys-table.php'; $api_keys_table = new EDD_API_Keys_Table(); $api_keys_table->prepare_items(); $api_keys_table->display(); ?> <p> <?php printf(__('These API keys allow you to use the <a href="%s">EDD REST API</a> to retrieve store data in JSON or XML for external applications or devices, such as the <a href="%s">EDD mobile app</a>.', 'easy-digital-downloads'), 'http://docs.easydigitaldownloads.com/article/544-edd-api-reference/', 'https://easydigitaldownloads.com/downloads/ios-sales-earnings-tracker/'); ?> </p> <?php do_action('edd_tools_api_keys_after'); }