Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to provide API Key via wp-config.php #29

Open
bhubbard opened this issue Dec 7, 2015 · 2 comments
Open

Ability to provide API Key via wp-config.php #29

bhubbard opened this issue Dec 7, 2015 · 2 comments

Comments

@bhubbard
Copy link
Contributor

bhubbard commented Dec 7, 2015

It would be nice to provide an option to set API Key via the wp-config.php file. Similar to setting the WordPress url, the settings page would display the field but gray it out so it can only be changed via the wp-config.php file.

define('IDXBROKER_API_KEY', 'your_api_key');

define('IDXBROKER_PARTNER_API_KEY', 'your_partner_api_key');
sheparddw added a commit that referenced this issue Dec 9, 2015
… release/2.0.0

* commit '501f3d852db89b7b4cbdbf087328fe149285308f':
  Update styling of shortcode button to match WP and fix an issue where admin bar menu styling was not applying on the front end for admins.
  Fix merge conflicts.
  Finish swapping logos.
  Update IDX Icons and clean styling code for admin menus.
@antonioortegajr
Copy link
Contributor

Since other plugins like WPListings uses the API key stored in the database I am not sure moving this to the config file makes sense.

@bhubbard
Copy link
Contributor Author

To clarify, I am not suggesting we move this to the wp-config file. I am suggesting that we offer the ability to add it thru the config file. This simply takes priority over whats in the database.

It would work exactly the same way WordPress lets you set the site url in the wp-config file. By default WordPress will use whats set in the admin settings, which is stored in the database. However if you set it via the config file, that takes priority and the settings page input box for the site url becomes disabled.

This can be useful for troubleshooting, and prevent users from changing keys when needed.

rdowner22 added a commit that referenced this issue Jun 12, 2024
…x-broker-tab-deprecated-error-present-when-creating-new-form

IMPB-1462: Fix deprecated php errors with Contact Form 7 when IDX Bro…
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants