nxssnap_enqueue_scripts

The NextScripts: Social Networks Auto-Poster nxssnap enqueue scripts function.

Description

nxssnap_enqueue_scripts(); 

Usage

  1. if ( !function_exists( 'nxssnap_enqueue_scripts' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'nextscripts-social-networks-auto-poster/NextScripts_SNAP.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = nxssnap_enqueue_scripts(); 
  7.  

Defined (1)

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

/NextScripts_SNAP.php  
  1. if (!function_exists("nxssnap_enqueue_scripts")) { function nxssnap_enqueue_scripts() {  
  2. wp_enqueue_script( 'nxssnap-scripts', plugin_dir_url( __FILE__ ) . 'js/js.js', array( 'jquery' ), NextScripts_SNAP_Version); 
  3. wp_enqueue_script( 'selectize', plugin_dir_url( __FILE__ ) . 'js/selectize.min.js', array( 'jquery' ), NextScripts_SNAP_Version); 
  4. wp_enqueue_style( 'selectize', plugin_dir_url( __FILE__ ) . 'js/selectize.css' ); 
  5. wp_localize_script( 'nxssnap-scripts', 'MyAjax', array( 'ajaxurl' => nxs_get_admin_url( 'admin-ajax.php' ), 'nxsnapWPnonce' => wp_create_nonce( 'nxsnapWPnonce' ), )); 
  6. }}