There is currently no Jira ticket associated with this PR.
Link
This is not available on lab.
Feature Description
This introduces an option page that can be driven by either wp-config.php or by user input. If values are defined in wp-config.php then those values are used to populate the options; otherwise, the user can populate the options.
Feature Screenshots
You can access this new page by clicking on:
Settings
Theme Settings
Notes
This will eventually replace the ACF Options that we have, but this menu option is not yet in a place to do that. I still need to introduce:
Administration area styles
GraphQL support as outlined in #10
All input from the $_POST array is sanitized and done so based on if it's an array or a string.
This code also cleans up after itself such that if you empty a field, an option is deleted (not just left blank).
Steps To Verify Feature
How will your Lead Engineer and/or stakeholder test this?
Using Constants
Assume that you've populated the wp-config.php file with something like the following:
There is currently no Jira ticket associated with this PR.
Link
This is not available on lab.
Feature Description
This introduces an option page that can be driven by either
wp-config.php
or by user input. If values are defined inwp-config.php
then those values are used to populate the options; otherwise, the user can populate the options.Feature Screenshots
You can access this new page by clicking on:
Notes
This will eventually replace the ACF Options that we have, but this menu option is not yet in a place to do that. I still need to introduce:
$_POST
array is sanitized and done so based on if it's an array or a string.Steps To Verify Feature
How will your Lead Engineer and/or stakeholder test this?
Using Constants
Assume that you've populated the
wp-config.php
file with something like the following:Then you should see something like this:
You will only be able to save the options for the 404 page.
Without Using Constants
If you remove at least one constant (it's all or nothing) then you see the following and you can test by populating the fields.
Feature Documentation
Please link to the client facing website documentation you created in [Confluence]().
Other
feature/PROJECTCODE-TICKETNUMBER-Jira-Ticket-Title
esc_html_e()
,esc_html__()
,esc_attr()
,esc_url()
.