Shortcode to get all taxonomy values of current post

function display_post_artists_shortcode() { // Get the terms (artists) of the “artist” taxonomy for the current post $artists = get_the_terms(get_the_ID(), ‘artist’); // Check if artists exist if ($artists && !is_wp_error($artists)) { // Start building the output $output = []; // Loop…Continue reading

ai content idea generator

function openai_generate_text() { // Get the topic from the AJAX request $prompt = $_POST[‘prompt’]; $prompt =”generate 10 content ideas about ” . $topic; // OpenAI API URL and key $api_url = ‘https://api.openai.com/v1/chat/completions’; $api_key = ‘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’ ; // Replace with your…Continue reading

Hi

// [hi msg=”This is the message”] function to display a custom message function hi($atts) { // Set default message and allow user to override it through shortcode attributes $attributes = shortcode_atts(array( ‘msg’ => ‘default hi message’ ), $atts); // Return…Continue reading

Define access to WPCode

/* ** This snippet controls who can access the WPcode plugin ** Added here to prevent people being able to bypass via WPCode SafeMode ** All other snippets are in the WPcode plugin */ add_filter( ‘map_meta_cap’, function ( $caps, $cap,…Continue reading

Prevent WPCode Access by User Id

add_filter( ‘map_meta_cap’, function ( $caps, $cap, $user_id, $args ) { $blocked_users = array( 999 ); // Replace 999 with the id of the user you want to block or add more ids. $custom_capabilities = array( ‘wpcode_edit_php_snippets’, ‘wpcode_edit_html_snippets’, ‘wpcode_manage_conversion_pixels’, ‘wpcode_file_editor’, ‘wpcode_manage_settings’,…Continue reading

WP Simple Pay: Require Terms of Service Link Click

jQuery( function() { var fieldId = ‘simpay-form-771-field-5’; var $checkbox = jQuery(‘#’ + fieldId); $checkbox.prop( ‘disabled’, true ); jQuery(‘label[for=”‘ + fieldId + ‘”] a’).on( ‘click’, function() { $checkbox.prop( ‘disabled’, false ); } ); });Continue reading

Post Meta Debugger

add_action( ‘add_meta_boxes’, function () { if ( ! current_user_can( ‘manage_options’ ) ) { // Don’t display the metabox to users who can’t manage options return; } add_meta_box( ‘wpcode-view-post-meta’, ‘Post Meta’, function () { $custom_fields = get_post_meta( get_the_ID() ); ?> Meta…Continue reading

Podar Jumbo Kids – Contact Details

–Select State–Daman and DiuGujaratKarnatakaMadhya PradeshMaharashtraRajasthan Podar Jumbo Kids, AnandPodar World School, Ankleshwar Podar Jumbo Kids, Bharuch – KasakPodar Jumbo Kids, Bharuch – ZadeshwarPodar Jumbo Kids, Vadodara – Gurukul Podar Jumbo Kids, Vadodara – ManjalpurPodar Jumbo Kids, Vadodara – Sayajipura Podar…Continue reading