Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save pablo-sg-pacheco/48246c4081b59087629a8e87d2c8ca94 to your computer and use it in GitHub Desktop.
Save pablo-sg-pacheco/48246c4081b59087629a8e87d2c8ca94 to your computer and use it in GitHub Desktop.
Customizes frontend position of Product Input field plugin
<?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