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
/** | |
* AutoFetch, AutoSync | |
* Bulk Product Sync for WooCommerce. | |
* | |
* October 16, 2024 | |
* AutoSync direct feature was not working, it is fixed now. | |
* | |
* September 10, 2024 | |
* makeAttribute function was missing | |
* |
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
2023-03-04T16:58:34+00:00 INFO Array | |
( | |
[Webhook Delivery] => Array | |
( | |
[Delivery ID] => 04b942d250e1f6735599b27d290dceba | |
[Date] => Mar 4, 2023 @ 16:58 | |
[URL] => https://script.google.com/macros/s/AKfycbzREkLowPNflSOSWca5exieeOJORrNSN9E-N7POw3zeYhj8VyigAM9ExA1_igR9Fa_L/exec?event_type=product_updated&sheet_id=1m0YzHUzr8MxwfPFnxziakygwosyZ25K-CS3lc_VSwFA&store_url=https://begfeast.s1-tastewp.com | |
[Duration] => 1.43979 | |
[Request] => Array | |
( |
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
<html> | |
<head> | |
<title>NOWA Homepage</title> | |
<link href="images/favicon.png" rel="icon" type="image/x-icon" /> | |
</head> | |
<body> | |
Hi students, today is our session no 2. And today we learn how to create | |
a HTML page. |
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
add_action('wp_ajax_wpfm_create_link', function(){ | |
// wp_send_json_success($_POST); | |
$current_user = wpfm_get_current_user(); | |
if( ! $current_user ) { | |
$resp = array('status' => 'error', | |
'message' => __("User object not found", 'wpfm')); | |
wp_send_json($resp); | |
} |
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
/** | |
* Code.gs, the main script for GoogleSync | |
* Please do not change this code unless I ask you :) | |
* File Version 4.1 | |
* Date Modified: August 23, 2021 | |
*/ | |
// Add a custom menu to the active document, including a separator and a sub-menu. | |
function onOpen(e) { | |
SpreadsheetApp.getUi() |
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
# Auth | |
N-Media Plugin Authentication Handling Script | |
* Checkout this repo inside plugin root or copy the Auth directory into plugin | |
* Remove .git directory, otherwise it will not be added into main plugin | |
* Paste following script into plugin main file after INCLUDING the files etc | |
<pre> | |
// Authencation checking |
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
// PPOM Price V2 Related | |
class PPOM_OQ_Class extends PPOM_Price_Class{ | |
constructor(field, value){ | |
super(field, value) | |
} | |
get_price() { | |
let p = this.field.price || ''; |
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
/** | |
** Hiding for tab for following categories | |
** Signage | |
** Signage + print | |
** Crystal awards | |
**/ | |
// Paste collowing code inside your theme's functions.php file |
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
create host file in /etc/apache2/sites-available | |
make sure AWS Route 53 as Host/Zone Entry for this | |
For WordPress Permissions Issue | |
> sudo chown www-data:www-data /var/www/ -R |
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
"use strict" | |
var successCallback = function(data) { | |
var checkout_form = jQuery( 'form.woocommerce-checkout' ); | |
// add a token to our hidden input field | |
console.log(data); | |
var token = data.response.token.token; | |
checkout_form.find('#twoco_token').val(token); | |
NewerOlder