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
function nwa_get_payment_link_by_order($order) | |
{ | |
$order_payment_link = $order->get_checkout_payment_url(); | |
do_action('inspect', ['0_order_payment_link', $order_payment_link, __FILE__, __LINE__]); | |
if (is_a($order, 'WC_Subscription')) : | |
$renewal_order_ids = $order->get_meta('_subscription_renewal_order_ids_cache'); | |
// do_action('inspect', ['1_renewal_order_ids', $renewal_order_ids, __FILE__, __LINE__]); | |
if (isset($renewal_order_ids[0]) && !empty($renewal_order_ids[0])) : |
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
add_action('admin_menu', 'smooth_nested_sortable_menu'); | |
function smooth_nested_sortable_menu() | |
{ | |
add_menu_page( | |
'Smooth Nested Sortable', // Page title | |
'Nested Sortable', // Menu title | |
'manage_options', // Capability | |
'smooth-nested-sortable', // Menu slug | |
'smooth_nested_sortable_page', // Function to display the content |
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
const puppeteer = require('puppeteer'); | |
const { PDFDocument } = require('pdf-lib'); | |
const fs = require('fs'); | |
(async () => { | |
const url = 'https://orangerdev.space/cv-style-1/'; | |
// Membuka browser dan halaman baru | |
const browser = await puppeteer.launch({ | |
args: ['--disable-web-security'] |
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 | |
$textarea_string = 'lorem | |
ipsum | |
dolor | |
sit | |
amet'; | |
$textarea_arr = preg_split('/[\r\n]+/', $textarea_string, -1, PREG_SPLIT_NO_EMPTY); |
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
/* | |
vertical scrollable menu | |
*/ | |
.tokenz-vertical-scrollable-menu ul::-webkit-scrollbar-thumb { | |
background-color: darkgrey !important; | |
outline: 0px solid slategrey !important; | |
} | |
.tokenz-vertical-scrollable-menu ul::-webkit-scrollbar-track { | |
box-shadow: inset 0 0 6px rgb(0 0 0 / 30%) !important; | |
} |
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 | |
namespace Tokenz\Model; | |
/** | |
* User_Verification classes | |
* @since 1.0.0 | |
*/ | |
class User_Verification { |
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 | |
function vcwpk_get_visitor_ip() { | |
$ipaddress = file_get_contents('https://api.ipify.org'); | |
if ( ! $ipaddress ) : | |
if (getenv('HTTP_CLIENT_IP')) | |
$ipaddress = getenv('HTTP_CLIENT_IP'); |
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
define( 'FS_METHOD', 'direct' ); |
NewerOlder