This file contains 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
/www/html/wp-content/plugins/eventON/includes/class-evo-widget-main.php line number 433 updated with code: $shortcode = '[add_eventon hide_past="yes" event_count="7"]'; from $shortcode = '[add_eventon hide_past="yes"]'; |
This file contains 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 | |
// create custom plugin settings menu | |
add_action('admin_menu', 'my_cool_plugin_create_menu'); | |
function my_cool_plugin_create_menu() { | |
//create new top-level menu | |
add_menu_page('Google Ad', 'Google Ad Settings', 'administrator', __FILE__, 'my_cool_plugin_settings_page' , 'dashicons-screenoptions', __FILE__) ); | |
//call register settings function |
This file contains 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
$ sudo apt-get update | |
$ sudo apt-get install nginx | |
$ sudo ufw allow 'Nginx HTTP' | |
$ sudo ufw status | |
# You should see HTTP traffic allowed in the displayed output: | |
Output | |
Status: active |
This file contains 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
/// Custome Total Pirce Rule | |
function custom_calculated_total( $total, $cart ){ | |
if ( is_admin() && ! defined( 'DOING_AJAX' ) ) return; | |
$coupons_50_price = array('sha001', 'sha002', 'sha003', 'sha004', 'sha005'); // Add add full list here | |
$coupons_100_price = array('sha301', 'sha302', 'sha303', 'sha304', 'sha305'); // Add add full list here | |
$coupons_200_price = array('sha601', 'sha602', 'sha603', 'sha604', 'sha605'); // Add add full list here | |
$applied_coupons = WC()->cart->get_applied_coupons(); | |
if($applied_coupons) { |
This file contains 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: Custom API | |
* Plugin URI: http://chrushingit.com | |
* Description: Crushing it! | |
* Version: 1.0 | |
* Author: Art Vandelay | |
* Author URI: http://watch-learn.com | |
*/ |