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 | |
function helper_imageUrlToFeaturedImage( $post_id, $image_url ) { | |
if( esc_url_raw( $image_url ) === $image_url ) { | |
$image_name = date( 'YmdHis' ) . '-' . $post_id . '-bc.jpg'; | |
$upload_dir = wp_upload_dir(); // Set upload folder | |
$image_data = file_get_contents($image_url); // Get image data | |
$unique_file_name = wp_unique_filename( $upload_dir['path'], $image_name ); // Generate unique name | |
$filename = basename( $unique_file_name ); // Create image file name | |
// Check folder permission and define file location |
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 solusipress_custom_wa_api_send( $data, $form_id ) { | |
/** | |
* Do something here | |
* $data contains this information: | |
[ | |
'to_number' => 'the number you defined', | |
'message' => 'message content from mail tab template', | |
'cf7_inputs' => the_posted_data_array_from_cf7, | |
'to_number_2' => 'the number for autorespond', |
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
[md-form spacing="tight"] | |
[md-select label="Pilih Support" outlined="yes"] | |
[select_channel* service] | |
[/md-select] | |
[md-text label="Nama Lengkap" outlined="yes"] | |
[text* your-name] | |
[/md-text] | |
[md-text label="No WhatsApp" outlined="yes"] | |
[number* your-whatsapp] | |
[/md-text] |
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
Default Shortcode, menampilkan seluruh produk simple & variabel dan dikelompokan per kategori. | |
[cf7sendwa-quickshop] | |
Menampilkan text & category filter. | |
[cf7sendwa-quickshop filter="yes"] | |
Menampilkan produk dengan kategori hoodies. Untuk beberapa kategori gunakan koma sebagai pemisah. misal hoodies,tshirts | |
[cf7sendwa-quickshop category="hoodies"] | |
Menampilkan produk tertentu saja, gunakan product ID. |
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( 'wp_enqueue_scripts', 'solusipress_jquery_number' ); | |
function solusipress_jquery_number() { | |
if( is_page( 'forminator-test' ) ) { | |
wp_enqueue_script( 'jquery-number', 'https://businessprofile.solusipress.com/wp-content/uploads/custom-css-js/18.js' ); | |
} | |
} | |
add_action( 'wp_footer', 'solusipress_forminator_format_number' ); | |
function solusipress_forminator_format_number() { | |
if( is_page( 'forminator-test' ) ) { ?> |