Skip to content

Instantly share code, notes, and snippets.

View dankerizer's full-sized avatar
:octocat:
kerjaTerus

Hadie Danker dankerizer

:octocat:
kerjaTerus
View GitHub Profile
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<style>
.countdown {
font-weight: bold;
max-width: 200px;
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<style>
.countdown {
font-weight: bold;
max-width: 200px;
@dankerizer
dankerizer / page-kosong.php
Last active March 31, 2018 03:43
page-kosong.php
<?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
@dankerizer
dankerizer / ini di footer.php
Last active September 24, 2018 07:27
floating button wa
//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
@dankerizer
dankerizer / gist:c09a3ff0046be3fa877c90355bbfef1d
Created July 19, 2018 18:33 — forked from mikejolley/gist:3097073
WooCommerce - Unhook/Disable emails
/**
* 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
**/
@dankerizer
dankerizer / delete-all.php
Created July 22, 2018 19:40 — forked from Shelob9/delete-all.php
Example code for reading, updating and deleting Caldera Forms entries. See: https://calderaforms.com/doc/edit-caldera-forms-entries-php/
<?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 );
}
}
@dankerizer
dankerizer / find-array-key.php
Created September 3, 2018 17:13
find array key by value
<?php
function themeid_find_array($array, $field, $value)
{
if (is_array($array)) {
foreach ($array as $key => $item) {
if ($item[$field] === $value)
return $key;
}
}
@dankerizer
dankerizer / available shortcode
Created September 30, 2018 10:54
thank you page caladea
available shortcode
%nama%
%phone%
%email%
%total_pembayaran%
%kurir%
%ongkir%
%alamat%
%quantity%
%product%
%nama%
%phone%
%email%
%total_pembayaran%
%kurir%
%ongkir%
%alamat%
%quantity%
%harga%