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 | |
/* Class: Twikeyservice */ | |
$data = $this->getCompletedMandates(); | |
$result = []; | |
foreach ($data as $row) { | |
$order = json_decode($row->data, true); | |
$order['person']['phone'] = Api::validateMobileNumber($order['person']['phone'] ?? ""); | |
$result[] = [$order['person'], $row->customer_number, $row->location]; | |
$updateParams = [$order['person'], $row->customer_number, $row->location]; |
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 | |
/** | |
* Gravity Wiz // Gravity Forms // Edit Products & Payment Details | |
* | |
* Edit products (and payment details) via the Gravity Forms Edit Entry view. | |
* | |
* @version 1.3 | |
* @author David Smith <[email protected]> | |
* @license GPL-2.0+ | |
* @link http://gravitywiz.com/ |
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
const moment = require('moment'); | |
pm.globals.set("currentTime", moment().format("YYYY-MM-DDTHH:mm:ssZ")); | |
//2022-12-09T09:11:50+01:00 |
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_shortcode('dsm_custom_sub_header_bar', 'dsm_custom_sub_header_bar_func'); | |
function dsm_custom_sub_header_bar_func() | |
{ | |
global $woocommerce; | |
$cat_args = array( | |
'orderby' => 'name', | |
'order' => 'asc', | |
'hide_empty' => true, | |
'parent' => 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 | |
$id = $_GET['id']; | |
$path = getcwd() .'/' . $id . "/"; | |
$files = scandir($path); | |
foreach($files as $key => $file){ | |
if($file == "." || $file == ".."|| $file == "original"){ | |
continue; |
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_filter('content_save_pre', 'dsm_content_save_pre_enfold_alb', 100, 1); | |
function dsm_content_save_pre_enfold_alb($content) | |
{ | |
if (is_admin()) { | |
$post_id = get_the_ID(); | |
$post_type = get_post_type($post_id); | |
if ($post_type == 'post') { | |
$builder_stat = Avia_Builder()->get_alb_builder_status($post_id); | |
if (('active' == $builder_stat) && !is_preview()) { |
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
<!-- This is a very basic canvas example which allows for panning and zooming using a mouse (Click & drag & scrollwheel) or touchscreen (tap and drag to pan, pinch to zoom). --> | |
<body> | |
<canvas id="canvas"></canvas> | |
</body> |
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
#Laravel bestanden zetten | |
- zet boven de public directory een nieuwe directory neer met een algemene installatie naam | |
- verplaats alle bestanden van het laravel project naar de nieuwe server directory opna de Public directory | |
- verplaats de bestanden uit de Public directory van het laravelproject naar de public directory van de server | |
#Bestandspaden naar het project goedzetten | |
- Open het bestand: <Server>/public/index.php | |
- Zet alle paden naar de bestanden binnen deze file naar de juiste sub directory "../<laravel_installatie>/storage" | |
#ENV settings in het project goedzetten |
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
.tablepress { | |
font-size: 12px; | |
} | |
.tablepress thead .column-1 { | |
border-top-left-radius: 20px; | |
} | |
.tablepress thead tr th:last-child { | |
border-top-right-radius: 20px; |
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_filter( 'manage_edit-shop_order_columns', 'dev_show_product_order',15 ); | |
function dev_show_product_order($columns){ | |
//add column | |
$columns['product-display'] = __( 'Products'); | |
return $columns; | |
} | |
add_action( 'manage_shop_order_posts_custom_column' , 'dev_custom_shop_order_column', 10, 2 ); |
NewerOlder