Skip to content

Commit

Permalink
Move settings submenu under A12 Stock Store menu
Browse files Browse the repository at this point in the history
  • Loading branch information
GeoJunkie committed Jul 16, 2024
1 parent 5d64d0b commit cc471e6
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions src/Settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,10 @@ public function initialize(): void {
* @return void
*/
public function add_settings_page(): void {
add_options_page(
add_submenu_page(
'buya12stock',
__( 'DocuSign WooCommerce Orders Settings', 'wpcomsp-woocommerce-docusign-orders' ),
__( 'DocuSign for Woo', 'wpcomsp-woocommerce-docusign-orders' ),
__( 'DocuSign', 'wpcomsp-woocommerce-docusign-orders' ),
'manage_options',
'wpcomsp_woocommerce_docusign_settings',
array( $this, 'display_settings' )
Expand Down Expand Up @@ -344,12 +345,12 @@ public function update_settings_data( string $key, $value ): void {
private function get_settings_fields(): array {
$fields = array(
array(
'label' => __( 'Environment', 'wpcomsp-woocommerce-docusign-orders' ),
'type' => 'select',
'setting' => 'environment',
'id' => $this->slug . '-settings[environment]',
'name' => $this->slug . '-settings[environment]',
'options' => $this->get_environment_options(),
'label' => __( 'Environment', 'wpcomsp-woocommerce-docusign-orders' ),
'type' => 'select',
'setting' => 'environment',
'id' => $this->slug . '-settings[environment]',
'name' => $this->slug . '-settings[environment]',
'options' => $this->get_environment_options(),
'description' => __( 'The DocuSign environment to connect to.', 'wpcomsp-woocommerce-docusign-orders' ),
),
array(
Expand Down

0 comments on commit cc471e6

Please sign in to comment.