add_pointer_scripts
The WooCommerce Billogram Integration add pointer scripts function.
Description
add_pointer_scripts();
Usage
if ( !function_exists( 'add_pointer_scripts' ) ) { require_once ABSPATH . PLUGINDIR . 'woocommerce-billogram-integration/woocommerce-billogram2-extended.php'; } // NOTICE! Understand what this does before running. $result = add_pointer_scripts();
Defined (1)
The function is defined in the following location(s).
- /woocommerce-billogram2-extended.php
- function add_pointer_scripts()
- {
- $content = '<h3>WooCommerce Billogram Integration</h3>';
- $content .= '<p>You*ve just installed WooCommerce Billogram Integration by WooBill. Please use the plugin options page to setup your integration.</p>';
- ?>
- <script type="text/javascript">
- jQuery(document).ready( function($) {
- $("#toplevel_page_woocommerce_billogram_options").pointer({
- content: '<?php echo $content; ?>',
- position: {
- edge: 'left',
- align: 'center'
- },
- close: function() {
- // what to do after the object is closed
- var data = {
- action: 'wp_pointer_hide'
- };
- jQuery.post(ajaxurl, data);
- }
- }).pointer('open');
- });
- </script>
- <?php
- }