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
Watch this Video (Language: Urdu) = https://www.linkedin.com/posts/safwanafridi_wordpress-wordpresscommunity-wordpresstips-activity-7185940917751586816-QHoC |
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 shortcode_listing_expiry() { | |
// Get the current post ID | |
$post_id = get_the_ID(); | |
// Get the _expiry_date meta value for the current post | |
$expiry_date = get_post_meta($post_id, '_expiry_date', true); | |
// Output the meta value | |
if (!empty($expiry_date)) { | |
$output = '<p>Expiry Date: ' . esc_html($expiry_date) . '</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
<script> | |
var Status = true; | |
var observer; | |
var config; | |
function runCodeWhenElementExists() { | |
setTimeout(() => { | |
// Check if the target element exists | |
if (document.querySelector("#wpforms-confirmation-2690") && Status) { |
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
< script > | |
document.addEventListener('DOMContentLoaded', function() { | |
var wpformsSubmitBtn = document.querySelector('.calendlypopup'); | |
// Run the code after 1.5 second when Submit button is clicked in WpForm. | |
wpformsSubmitBtn.addEventListener('click', function() { | |
setTimeout(function() { | |
// Get the current src attribute of the iframe | |
var iframe = document.querySelector('.calendly-inline-widget iframe'); |