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> | |
<head> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
</head> | |
<body style="background-color: #2a2a2a; | |
font-family: arial; | |
-webkit-font-smoothing: antialiased; | |
font-size: 16px; |
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($) { | |
$(document).on('click',".fa-check-circle",function () { | |
var cct_id = $(this).siblings('.jet-listing-dynamic-field__content').text(); | |
jQuery.ajax({ | |
type: "post", | |
dataType: "json", |
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/send_notification', function( $request, $action_handler ) { | |
$cct_id = $request['inserted_cct_notifications']; | |
$email_notify = $request['email_notify']; | |
$notification_details = $request['notification_details']; | |
$users = get_users(); | |
foreach ($users as $user) { | |
$user_id = $user->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
add_shortcode( 'jet_post_terms', function( $atts = array() ) { | |
$atts = shortcode_atts( array( | |
'tax' => '', | |
'lvl' => '' | |
), $atts, 'jet_post_terms' ); | |
$post_id = get_the_ID(); | |
if ( empty( $atts['tax'] ) ) { | |
return; |
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); |
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
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
<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
<?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 | |
*/ |