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: Elementor Mods | |
* Plugin URI: https://gist.github.com/bob-moore/986bafade1aa0b04bb30e0a2f08fb105 | |
* Description: Mod some elementor stuff | |
* Version: 0.1.0 | |
* Author: Bob Moore | |
* Author URI: https://github.com/bob-moore | |
* License: GPL-2.0+ |
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 | |
function prefix_print_error( $item, $action = 'shutdown' ) { | |
add_action( $action, function() use( $item ) { | |
printf( '<script>console.log(%s);</script>', json_encode( $item, JSON_PARTIAL_OUTPUT_ON_ERROR, JSON_PRETTY_PRINT ) ); | |
}, 9999 ); | |
} |
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 | |
function generate_price_metadata( $product_id ) { | |
/** | |
* Get the product based on ID | |
*/ | |
$product = wc_get_product( $product_id ); | |
/** | |
* This should be set during import to false | |
* |
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 | |
/** | |
* @wordpress-plugin | |
* Plugin Name: CUSTOM PLUGIN NAME | |
* Plugin URI: https://YOURDOMAIN.com | |
* Description: CUSTOM PLUGIN DESCRIPTION | |
* Version: 1.0.0 | |
* Author: YOUR NAME | |
* Author URI: https://YOURDOMAIN.com | |
* License: GPL-2.0+ |
OlderNewer