pmpro_enqueue_update_js

Enqueue updates.js if needed.

Description

pmpro_enqueue_update_js(); 

Usage

  1. if ( !function_exists( 'pmpro_enqueue_update_js' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'paid-memberships-pro/includes/updates.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = pmpro_enqueue_update_js(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/includes/updates.php  
  1. function pmpro_enqueue_update_js() { 
  2. if(!empty($_REQUEST['page']) && $_REQUEST['page'] == 'pmpro-updates') { 
  3. wp_enqueue_script( 'pmpro-updates', plugin_dir_url( dirname(__FILE__) ) . 'js/updates.js', array('jquery'), PMPRO_VERSION );