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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Title</title> | |
<style> | |
.countdown { | |
font-weight: bold; | |
max-width: 200px; |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Title</title> | |
<style> | |
.countdown { | |
font-weight: bold; | |
max-width: 200px; |
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 | |
/** | |
* Template Name: Halaman Kosong | |
* Created by Hadie Danker – page-recent-post.php. | |
* URI : https://theme.id | |
* Date: 19/01/2018 | |
* Time: 1:14 | |
* Caranya | |
* 1. buat file dengan nama page-kosong.php | |
* 2. buka di notepad kemudian copy code ini |
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
//contoh fungctions untuk banner | |
function ini_banner_saya(){ | |
echo ' | |
<a href=""><amp-img src="https://ecs7.tokopedia.net/img/banner/2018/4/30/25618007/25618007_2cecb64d-2c18-4469-8c50-b3532d8bf724.jpg.webp" width="460" height="130"></amp-img></a> | |
'; | |
} | |
add_action('adense_below_title','ini_banner_saya'); //ini_banner_saya di ambil dari nama function di atas |
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 goes in functions.php or a custom plugin. | |
*/ | |
add_action( 'woocommerce_email', 'unhook_those_pesky_emails' ); | |
function unhook_those_pesky_emails( $email_class ) { | |
/** | |
* Hooks for sending emails during store events | |
**/ |
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 | |
//delete all saved Caldera Forms | |
$forms = Caldera_Forms_Forms::get_forms( false, true ); | |
if( ! empty( $forms ) ){ | |
foreach( $forms as $form ){ | |
Caldera_Forms_Forms::delete_form( $form ); | |
} | |
} |
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 | |
function themeid_find_array($array, $field, $value) | |
{ | |
if (is_array($array)) { | |
foreach ($array as $key => $item) { | |
if ($item[$field] === $value) | |
return $key; | |
} | |
} |
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
available shortcode | |
%nama% | |
%phone% | |
%email% | |
%total_pembayaran% | |
%kurir% | |
%ongkir% | |
%alamat% | |
%quantity% |
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
%product% | |
%nama% | |
%phone% | |
%email% | |
%total_pembayaran% | |
%kurir% | |
%ongkir% | |
%alamat% | |
%quantity% | |
%harga% |