How Can I Pass the Shortcode’s $atts Variable to the Plugin’s Javascript Function

You need to have some initial (maybe global) js var markers_array = [];. Then use an ajax callback function to bump your markers into that array. Register your scripts // Define $root_url = plugin_dir_path(); // Example path $ajax_nonce=”your_nonce”; $ajax_nonce_val=”your_val”; // Ajax wp_register_script( ‘json2’, false, false, false, true ); wp_enqueue_script( ‘json2’ ); wp_enqueue_script( ‘ajax-script’ ,”{$root_url}js/ajax_json.js” // … Read more

Change wording of admin menu item?

Inside the plugin folder check for File: jigoshop_taxonomy.php Line no: 120 You will see register_post_type( “product”, array( ‘labels’ => array( ‘name’ => __( ‘Products’, ‘jigoshop’ ), ‘singular_name’ => __( ‘Product’, ‘jigoshop’ ), ‘all_items’ => __( ‘All Products’, ‘jigoshop’ ), ‘add_new’ => __( ‘Add Product’, ‘jigoshop’ ), ‘add_new_item’ => __( ‘Add New Product’, ‘jigoshop’ ), ‘edit’ … Read more

upgrade plugin in wordpress

Sure, just download the plugin and unzip it overriding the existing plugin directory in wp-content\plugins, or in a new dir named as the plugin if you want to install a new one.

Hidden Custom Post Type

If you want it to be visible everywhere (i.e. search), just without the admin menu, then something to the effect of the following should do the trick when added to functions.php in the theme directory: register_post_type( ‘project’, array( ‘labels’ => array( ‘name’ => _x( ‘Projects’, ‘post type general name’, ‘namespace’ ), ‘singular_name’ => _x( ‘Project’, … Read more

Trigger renewal order emails for WooCommerce subscriptions for testing

To trigger an off-schedule renewal and therefore trigger the renewal order email, please follow these steps: Purchase the test subscription with either Stripe or a gateway that requires manual renewal payments (e.g. Cheque, Bank transfer). PayPal won’t work. Find the subscription key for the newly purchased subscription. Delete the wcs_blocker_{$user_id}_($subscription_key} transient from the database (where … Read more