rayrutjes / wc-order-search-admin

💵 Search for WooCommerce orders in the admin at the speed of thought with Algolia.

Home Page:https://wordpress.org/plugins/wc-order-search-admin/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Allow configuring credentials in wp-config.php

rayrutjes opened this issue · comments

@rayrutjes ... I'll suggest the following constant names to avoid a clash with the other constants, in case they - for some reason should have different values:

define ( 'WC_OSA_ALGOLIA_APPLICATION_ID', '<value>' );
define ( 'WC_OSA_ALGOLIA_SEARCH_API_KEY', '<value>' );
define ( 'WC_OSA_ALGOLIA_ADMIN_API_KEY', '<value>' );
define ( 'WC_OSA_ORDERS_INDEX_NAME', '<value>' );
define ( 'WC_OSA_ORDERS_PER_BATCH', '<value>' );

How does that sound?

The suggested naming is perfect IMHO!

If you are doing a PR, please use conventional commit format: https://conventionalcommits.org/

That way, I'm sure to not steal your contribution again :/

@rayrutjes check PR #78 I hope it follows the conventional commit formats ;)

Fixed here #78

Thanks for all the hard work @urlund and your patience.

You can now use constants in v1.11.0.