function add_custom_javascript() { // Check if we’re on a single post or page if(is_singular()) { // Get the post ID of the current post or page $post_id = get_the_ID(); // Check if the custom field ‘funnel’ exists and get its…Continue reading
/** * Shows how to add a custom text box in a donation form. * In this example, we are adding a text box to collect a special referral code that the admin can read later. * * This snippet…Continue reading
Loading the Elevenlabs Text to Speech AudioNative Player…Continue reading
/* Disable WordPress Admin Bar for all users */ add_filter( ‘show_admin_bar’, ‘__return_false’ );Continue reading
add_action( ‘before_rocket_clean_domain’, function() { do_action( ‘qm/cease’ ); } );Continue reading
/** * Manually refresh all members’ data. * * Once this snippet is added, visit /wp-admin/?update-member-data=true on your site to update all member data. * After running the update, clear any site cache and check the Members page again. */…Continue reading
// Create a custom admin page function images_with_link_and_size_menu() { add_media_page( ‘Media Library Optimization Dashboard’, ‘Media Optimization’, ‘manage_options’, ‘media-library-optimization-dashboard’, ‘media_library_optimization_dashboard’ ); } add_action(‘admin_menu’, ‘images_with_link_and_size_menu’); // Get posts where image is embedded function find_post_using_image($image_url) { global $wpdb; // The modified query includes…Continue reading