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
function get_thumb($url) | |
{ | |
$url = trim($url); | |
if(substr($url, -1)=="/") | |
{ | |
$url = substr($url, 0, -1); | |
} | |
$urls = [$url]; | |
$ids = []; | |
foreach ($urls as $url) |
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
a:196:{i:0;a:3:{s:5:"value";s:11:"Afghanistan";s:5:"label";s:11:"Afghanistan";s:10:"is_checked";i:0;}i:1;a:3:{s:5:"value";s:7:"Albania";s:5:"label";s:7:"Albania";s:10:"is_checked";i:0;}i:2;a:3:{s:5:"value";s:7:"Algeria";s:5:"label";s:7:"Algeria";s:10:"is_checked";i:0;}i:3;a:3:{s:5:"value";s:7:"Andorra";s:5:"label";s:7:"Andorra";s:10:"is_checked";i:0;}i:4;a:3:{s:5:"value";s:6:"Angola";s:5:"label";s:6:"Angola";s:10:"is_checked";i:0;}i:5;a:3:{s:5:"value";s:14:"Antigua & Deps";s:5:"label";s:14:"Antigua & Deps";s:10:"is_checked";i:0;}i:6;a:3:{s:5:"value";s:9:"Argentina";s:5:"label";s:9:"Argentina";s:10:"is_checked";i:0;}i:7;a:3:{s:5:"value";s:7:"Armenia";s:5:"label";s:7:"Armenia";s:10:"is_checked";i:0;}i:8;a:3:{s:5:"value";s:9:"Australia";s:5:"label";s:9:"Australia";s:10:"is_checked";i:0;}i:9;a:3:{s:5:"value";s:7:"Austria";s:5:"label";s:7:"Austria";s:10:"is_checked";i:0;}i:10;a:3:{s:5:"value";s:10:"Azerbaijan";s:5:"label";s:10:"Azerbaijan";s:10:"is_checked";i:0;}i:11;a:3:{s:5:"value";s:7:"Bahamas";s:5:"label";s:7: |
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
<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/v/dt/dt-1.11.2/datatables.min.css"/> | |
<script type="text/javascript" src="https://cdn.datatables.net/v/dt/dt-1.11.2/datatables.min.js"></script> | |
<script> | |
jQuery(document).ready(function($) { | |
$('.jet-dynamic-table').DataTable(); | |
}); | |
</script> |
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
<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/v/dt/dt-1.11.2/datatables.min.css"/> | |
<script type="text/javascript" src="https://code.jquery.com/jquery-3.5.1.js"></script> | |
<script type="text/javascript" src="https://cdn.datatables.net/1.12.1/js/jquery.dataTables.min.js"></script> | |
<script type="text/javascript" src="https://cdn.datatables.net/buttons/2.2.3/js/dataTables.buttons.min.js"></script> | |
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script> | |
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.53/pdfmake.min.js"></script> | |
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.53/vfs_fonts.js"></script> | |
<script type="text/javascript" src="https://cdn.datatables.net/buttons/2.2.3/js/buttons.html5.min.js"></script> | |
<script type="text/javascript" src="https://cdn.datatables.net/buttons/2.2.3/js/buttons.print.min.js"></script> |
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 | |
/** | |
* Plugin Name: Auto Pricing | |
* Plugin URI: https://www.softemblems.com | |
* Description: Display auto convert currency for woocommerce products based on user location. | |
* Version: 0.1 | |
* Text Domain: auto-pricing | |
* Author: Moxet Khan | |
* Author URI: https://www.moxetkhan.com | |
*/ |
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
<script> | |
jQuery(document).ready(function($) { | |
var generatePassword = ( | |
length = 20, | |
wishlist = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz~!@-#$' | |
) => | |
Array.from(crypto.getRandomValues(new Uint32Array(length))) | |
.map((x) => wishlist[x % wishlist.length]) | |
.join('') |
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
add_action( 'jet-form-builder/custom-action/create_terms', function( $request, $action_handler ) { | |
$terms = explode(',', $request['terms']); | |
$taxonomy = $request['tax']; // Replace with your actual taxonomy name | |
foreach ($terms as $term) { | |
// Check if the term already exists | |
$existing_term = term_exists($term, $taxonomy); |
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
add_action( 'jet-form-builder/custom-action/activate_user', function( $request, $action_handler ) { | |
//Getting code value from JFB | |
$code = $request['code']; | |
//Check all users who has the Unique code from URL | |
$users = get_users(array('meta_key' => 'code', 'meta_value' => $code)); | |
if(count($users)==1) | |
{ | |
$user_id = $users[0]->ID; |
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
function calculate_reading_time() { | |
if (is_single()) { | |
global $post; | |
// Adjust the words-per-minute rate according to your preference | |
$words_per_minute = 200; | |
// Get the post content | |
$content = get_post_field('post_content', $post->ID); |
OlderNewer