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
@dankerizer
dankerizer / functions.php
Last active March 25, 2022 10:20
WordPress Custom Cronjob Monthly
<?php
function wp_custom_cron_job_monthly( $schedules ) {
if(!isset($schedules['monthly'])){
$schedules['monthly'] = array(
'display' => __( 'Once monthly', 'textdomain' ),
'interval' => 2635200,
);
}
return $schedules;
@dankerizer
dankerizer / check-if-caldera-forms-is-active.php
Last active September 22, 2020 04:12 — forked from Shelob9/check-if-caldera-forms-is-active.php
Check If Caldera Form is Active or Not
<?php
/**
* function to Check if Caldera Forms is active
*/
function is_caldera_form_active(){
if (!function_exists('is_plugin_active')) {
include_once(ABSPATH . 'wp-admin/includes/plugin.php');
}
if (is_plugin_active('caldera-forms/caldera-core.php') || defined('CFCORE_VER')) {
@dankerizer
dankerizer / FInd In Array Object
Created February 24, 2020 16:45
FInd In Array Value in Dimensional Object
<?php
function in_array_field($needle, $needle_field, $haystack, $strict = false) {
if ($strict) {
foreach ($haystack as $item)
if (isset($item->$needle_field) && $item->$needle_field === $needle)
return true;
}
else {
foreach ($haystack as $item)
@dankerizer
dankerizer / DigitalOcean-Promo-Get-Free-$50-Credit-Free-Trial.md
Last active November 28, 2023 12:42
Digital Ocean Promo- Get Free $200 in credit over 60 days

DigitalOcean Referral Badge

Digital Ocean Promo Coupon Code Get $200 in credit over 60 days. 100% Works

1) Get $50 free DigitalOcean Credit at first time signup.

2) Get DigitalOcean 1 Year Free Trial.

3) Get $200 Credit For 60 Days. $200 Free Credits

@dankerizer
dankerizer / shortcode button
Created May 2, 2019 20:58
Caladea Button / Redirect to WhatsApp CS After Thank You Pages
[caladea_whatsapp_cs type="button" text="Hubungi Kami" icon="default" class="default" delay="2" newtab="true"]
Halo saya mau order sepatu nya
[/caladea_whatsapp_cs]
;(function () {
/**
* Run function when customizer is ready.
*/
wp.customize.bind('ready', function () {
wp.customize.control('slug_select_control', function (control) {
/**
* Run function on setting change of control.
*/
control.setting.bind(function (value) {
@dankerizer
dankerizer / functions.php
Created April 16, 2019 02:21
Remove Category Text
add_filter( 'get_the_archive_title', function ($title) {
if ( is_category() ) {
$title = single_cat_title( '', false );
} elseif ( is_tag() ) {
$title = single_tag_title( '', false );
@dankerizer
dankerizer / loader.svg
Created February 27, 2019 19:50
loader.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
%product%
%nama%
%phone%
%email%
%total_pembayaran%
%kurir%
%ongkir%
%alamat%
%quantity%
%harga%
@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%