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
// disable update notice for plugins | |
<?php | |
function disable_plugin_updates( $value ) { | |
$pluginsToDisable = [ | |
'events-calendar-pro/events-calendar-pro.php', // folder_name/main_file_name.php | |
'the-events-calendar/the-events-calendar.php', | |
]; | |
if ( isset($value) && is_object($value) ) { | |
foreach ($pluginsToDisable as $plugin) { | |
if ( isset( $value->response[$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: Neofarmers Report System | |
* Description: This plugin is for show reports of woocommerce. | |
* Author: Monir Hossain | |
* Version: 1.0 | |
* License: GPL2 | |
* Text Domain: neo-woo-report | |
*/ | |
/** |
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: OT Flatsome Ultimate Addons | |
Plugin URI: https://ninewp.com | |
Description: OT Flatsome Ultimate Addons | |
Version: 1.0.0 | |
Author: thinhbg59 | |
Text Domain: OT_FL_Ultimate_Addons | |
Domain Path: /languages |
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
/** | |
* | |
* Flatsome UX Builder Addon | |
* | |
* adds a scroll to mouse animation to parts of the page | |
* | |
* Dependent files (in your child theme): | |
* /css/scroll.min.css | |
* | |
* Parent Theme Supported |
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
function mysite_pending($order_id) { | |
error_log("$order_id set to PENDING", 0); | |
} | |
function mysite_failed($order_id) { | |
error_log("$order_id set to FAILED", 0); | |
} | |
function mysite_hold($order_id) { | |
error_log("$order_id set to ON HOLD", 0); | |
} | |
function mysite_processing($order_id) { |
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
### WooCommerce ### | |
/** | |
* Check if WooCommerce is active | |
**/ | |
if ( in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) ) { | |
// Put your plugin code here | |
} |
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
function orderBy($items, $attr, $order) | |
{ | |
$sortedItems = []; | |
foreach ($items as $item) { | |
$key = is_object($item) ? $item->{$attr} : $item[$attr]; | |
$sortedItems[$key] = $item; | |
} | |
if ($order === 'desc') { | |
krsort($sortedItems); | |
} else { |
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 | |
/** | |
* Functions and Hooks for product meta box data | |
* | |
* @package Supro | |
*/ | |
if ( ! defined( 'ABSPATH' ) ) { | |
exit; | |
} |
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 | |
$statuses = wc_get_order_statuses(); | |
foreach( $statuses as $status => $status_name ) { | |
?> | |
<option value="<?php echo $status; ?>"><?php echo $status_name; ?></option> | |
<?php | |
} |
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
jQuery.ajax({ | |
type: "POST", | |
url: url, | |
data: data, | |
beforeSend: function () {}, | |
success: function(response) {}, | |
complete: function() {} | |
}); |