Skip to content

Commit

Permalink
Merge pull request #1496 from angelleye/PFW-694-A
Browse files Browse the repository at this point in the history
Move Hide Version Tag setting to Global tab, PFW-694
  • Loading branch information
kcppdevelopers committed Sep 28, 2020
2 parents d383ccb + 4ee84d3 commit 8ead943
Show file tree
Hide file tree
Showing 2 changed files with 225 additions and 244 deletions.
33 changes: 1 addition & 32 deletions paypal-for-woocommerce.php
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,6 @@ public function __construct()
add_filter( 'woocommerce_email_classes', array($this, 'angelleye_woocommerce_email_classes'), 10, 1);
add_filter( 'wc_get_template', array($this, 'own_angelleye_wc_get_template'), 10, 5);
add_filter( 'woocommerce_email_actions', array($this, 'own_angelleye_woocommerce_email_actions'), 10);
add_filter( 'woocommerce_general_settings', array($this, 'include_pfw_settings'), 10, 1);
$this->customer_id;
}

Expand All @@ -181,37 +180,7 @@ public function paypal_for_woo_head_mark() {
}
}

/**
* Extends PFW Setting in WooCommerce Setting -> General tab
* @param array $general_settings
*
* @return array
*/
public function include_pfw_settings( $general_settings = [] ) {
$pfw_settings = [
array(
'title' => __( 'PayPal for WooCommerce Options', 'woocommerce' ),
'type' => 'title',
'desc' => '',
'id' => 'pfw_options',
),
array(
'title' => __( 'Hide Version Tag', 'woocommerce' ),
'desc' => __( 'Hide plugin version tag from front end source code.', 'woocommerce' ),
'id' => 'pfw_hide_frontend_mark',
'default' => 'no',
'type' => 'checkbox',
'desc_tip' => __( 'Removes the PayPal for WooCommerce plugin version from front end source code.', 'woocommerce' ),
),
array(
'type' => 'sectionend',
'id' => 'pfw_options',
),
];

return array_merge($general_settings, $pfw_settings);
}


/*
* Adds class name to HTML body to enable easy conditional CSS styling
* @access public
Expand Down
Loading

0 comments on commit 8ead943

Please sign in to comment.