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
Website snapshot | |
https://www.thum.io/ |
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
function xyx_postype_duplicate_post_as_draft(){ | |
global $wpdb; | |
if (! ( isset( $_GET['post']) || isset( $_POST['post']) || ( isset($_REQUEST['action']) && 'xyx_postype_duplicate_post_as_draft' == $_REQUEST['action'] ) ) ) { | |
wp_die('No post to duplicate has been supplied!'); | |
} | |
/* | |
* Nonce verification | |
*/ |
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
["ease-linear","duration-75","duration-100","duration-150","duration-200","duration-300","duration-500","duration-700","duration-1000","delay-75","delay-100","delay-150","delay-200","delay-300","delay-500","delay-700","delay-1000","transition","bg-auto","bg-cover","bg-contain","bg-bottom","bg-top","bg-center","bg-left","bg-left-bottom","bg-left-top","bg-right","bg-right-bottom","bg-right-top","bg-fixed","bg-local","bg-scroll","bg-no-repeat","bg-repeat","bg-repeat-x","bg-repeat-y","bg-repeat-round","bg-repeat-space","bg-opacity-0","bg-opacity-25","bg-opacity-50","bg-opacity-75","bg-opacity-100","bg-transparent","bg-current","bg-black","bg-white","bg-gray-100","bg-gray-200","bg-gray-300","bg-gray-400","bg-gray-500","bg-gray-600","bg-gray-700","bg-gray-800","bg-gray-900","bg-red-100","bg-red-200","bg-red-300","bg-red-400","bg-red-500","bg-red-600","bg-red-700","bg-red-800","bg-red-900","bg-orange-100","bg-orange-200","bg-orange-300","bg-orange-400","bg-orange-500","bg-orange-600","bg-orange-700","bg-orange-800", |
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
.ease-linear | |
.duration-75 | |
.duration-100 | |
.duration-150 | |
.duration-200 | |
.duration-300 | |
.duration-500 | |
.duration-700 | |
.duration-1000 | |
.delay-75 |
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 | |
/** | |
* WooCommerce Extra Feature | |
* -------------------------- | |
* | |
* Add custom fee to cart automatically | |
* | |
*/ | |
function woo_add_cart_fee() { | |
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
add_action('post_grid_layout_element_excerpt', 'post_grid_layout_element_excerpt_land'); | |
function post_grid_layout_element_excerpt_land($args){ | |
$land = get_post_meta ( get_the_ID(), 'land', true); | |
echo '<p>'.$land.'</p>'; | |
} |
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
add_action('accordions_main', 'accordions_main_header_link', 50); | |
function accordions_main_header_link(){ | |
?> | |
<script> | |
jQuery(document).ready(function($){ | |
$( ".accordions-head-title a" ).click(function(event){ | |
event.stopPropagation(); // this is | |
event.preventDefault(); // the magic |
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
function post_grid_item_post_permalink_20200416($link){ | |
$post_id = get_the_id(); | |
$download_url = get_field( "download_url", $post_id ); | |
$link = !empty($download_url) ? $download_url : $link; | |
return $link; | |
} | |
add_filter('post_grid_item_post_permalink','post_grid_item_post_permalink_20200416'); |
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
$response = wp_remote_get($category_url, array('timeout' => 2)); | |
if ( is_wp_error( $response ) ) { | |
return; | |
} |