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
GET https://your-domain.com/wp-json/wilayah/v1/provinsi | |
GET https://your-domain.com/wp-json/wilayah/v1/kabkota/<id_propinsi> | |
GET https://your-domain.com/wp-json/wilayah/v1/kecamatan/<id_kabkota> | |
GET https://your-domain.com/wp-json/wilayah/v1/kelurahan/<id_kecamatan> | |
# Pagination | |
GET https://your-domain.com/wp-json/wilayah/v1/provinsi?per_page=10&page=1 | |
GET https://your-domain.com/wp-json/wilayah/v1/kabkota/<id_propinsi>?per_page=10&page=1 | |
GET https://your-domain.com/wp-json/wilayah/v1/kecamatan/<id_kabkota>?per_page=10&page=1 | |
GET https://your-domain.com/wp-json/wilayah/v1/kelurahan/<id_kecamatan>?per_page=10&page=1 |
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 | |
add_action( 'template_redirect', function(){ | |
if( isset( $_GET['ref'] ) && $_GET['ref'] != '' ) { | |
$maps = [ | |
"Andi" => "62812345678901", | |
"Mawar" => "62856345678901", | |
"Melati" => "62818345678901", | |
]; | |
$ref = trim( $_GET['ref'] ); | |
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 SolusiPress\Model; | |
class Base { | |
public $db = null; | |
public $table = null; | |
protected $sqlOrder = ''; | |
protected $sqlWhere = ''; |
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 | |
global $wpdb; | |
require_once( ABSPATH . 'wp-admin/includes/upgrade.php' ); | |
$sql = "CREATE TABLE `{$wpdb->prefix}app_employees` ( | |
`id` INT(11) NOT NULL AUTO_INCREMENT, | |
`post_id` BIGINT(20) DEFAULT NULL, | |
`emp_number` VARCHAR(20) COLLATE {$wpdb->collate} DEFAULT NULL, | |
`full_name` VARCHAR(100) COLLATE {$wpdb->collate} DEFAULT NULL, | |
`gender` VARCHAR(6) COLLATE {$wpdb->collate} DEFAULT NULL, |
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 | |
class Request { | |
public static $pagename = null; | |
public static $module = null; | |
public static $action_page = null; | |
public static $action_id = null; | |
public static $app_slug = null; | |
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 | |
class GuestBook { | |
private $form_id = '1035'; // gunakan ID form Anda | |
private $page_slug = 'buku-tamu'; // pastikan sesuai dengan slug halaman Anda | |
public function __construct(){ | |
add_action( 'wp_ajax_guestbook_entries', [$this, 'get_guestbook_entries' ] ); | |
add_action( 'wp_ajax_nopriv_guestbook_entries', [$this, 'get_guestbook_entries' ] ); | |
add_action( 'wp_enqueue_scripts', [$this, 'set_styling' ], 999 ); | |
add_action( 'forminator_after_form_render', [$this, 'custom_script_after_form_render' ], 10, 5 ); |
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
woo_checkout_first_name: your-name | |
woo_checkout_phone: whatsapp | |
woo_checkout_order_note: order-note |
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
[your-message] | |
[your-name] / [your-phone] |
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 | |
class SolusiPress_Custom_Woo_Checkout { | |
public function __construct() { | |
add_filter( 'woocommerce_default_address_fields', array( $this, 'woo_address_fields' ), 50, 1 ); | |
add_filter( 'woocommerce_checkout_fields', array( $this, 'woo_checkout_fields' ) ); | |
// first & last name merge | |
add_filter( 'default_checkout_billing_first_name', array( $this, 'first_name_default_value' ), 10, 2 ); | |
add_filter( 'default_checkout_shipping_first_name', array( $this, 'first_name_default_value' ), 10, 2 ); | |
add_filter( 'woocommerce_checkout_posted_data', array( $this, 'checkout_full_name_posted_data' ), 11 ); |
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 | |
class SolusiPress_WA_Checkout { | |
protected $version = '0.9.2'; | |
protected $wa_number = '6281314997198'; | |
protected $resend_text = 'Click here if your browser not redirect to WhatsApp'; | |
protected $wa_message_template = <<<EOT | |
Halo kak, | |
Berikut pesanan saya, mohon segera diproses |
NewerOlder