Created
June 28, 2018 21:49
-
-
Save pablo-sg-pacheco/48246c4081b59087629a8e87d2c8ca94 to your computer and use it in GitHub Desktop.
Customizes frontend position of Product Input field plugin
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: Customize Product Input Field Frontend Position | |
Description: Customizes frontend position of Product Input Field plugin | |
Version: 1.0.0 | |
Author: Algoritmika Ltd | |
Author URI: http://algoritmika.com | |
License: GNU General Public License v3.0 | |
License URI: http://www.gnu.org/licenses/gpl-3.0.html | |
Text Domain: customize-pif-frontend-position | |
Domain Path: /languages | |
*/ | |
add_filter( 'option_' . 'alg_wc_pif_frontend_position', function( $value ){ | |
$value='woocommerce_before_variations_form'; | |
return $value; | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment