/** * Register callbacks for actions and filters * * @since 1.0.0 */ protected function register_hook_callbacks() { LeafletLayers_Actions_Filters::add_shortcode('leafmap', 'leafmap_html'); if (self::$model_sett->get_settings('leafletlayers_collab_form')) { LeafletLayers_Actions_Filters::add_shortcode('leafmapform', 'leafmap_form'); LeafletLayers_Actions_Filters::add_action('wp_ajax_marker_submission', $this, 'leafletlayers_public_add'); LeafletLayers_Actions_Filters::add_action('wp_ajax_nopriv_marker_submission', $this, 'leafletlayers_public_add'); } LeafletLayers_Actions_Filters::add_action('wp_enqueue_scripts', $this, 'enqueue_styles'); LeafletLayers_Actions_Filters::add_action('wp_footer', $this, 'enqueue_scripts'); }
/** * Register callbacks for actions and filters * * @since 1.0.0 */ protected function register_hook_callbacks() { LeafletLayers_Actions_Filters::add_action('admin_menu', $this, 'plugin_menu'); LeafletLayers_Actions_Filters::add_action('admin_post_leafletlayers_add_marker', $this, 'add_marker'); LeafletLayers_Actions_Filters::add_action('admin_post_leafletlayers_edit_marker', $this, 'save_edited_marker'); LeafletLayers_Actions_Filters::add_action('admin_post_leafletlayers_delete_marker', $this, 'delete_marker'); LeafletLayers_Actions_Filters::add_action('admin_post_leafletlayers_validate_marker', $this, 'validate_marker'); LeafletLayers_Actions_Filters::add_action('admin_post_leafletlayers_add_group', $this, 'add_group'); LeafletLayers_Actions_Filters::add_action('admin_post_leafletlayers_edit_group', $this, 'save_edited_group'); LeafletLayers_Actions_Filters::add_action('admin_post_leafletlayers_delete_group', $this, 'delete_group'); LeafletLayers_Actions_Filters::add_action('admin_enqueue_scripts', $this, 'enqueue_admin_stuff'); }
/** * Register callbacks for actions and filters * * @since 1.0.0 */ protected function register_hook_callbacks() { LeafletLayers_Actions_Filters::add_action('admin_menu', $this, 'plugin_menu'); LeafletLayers_Actions_Filters::add_action('load-' . static::$hook_suffix, $this, 'register_fields'); LeafletLayers_Actions_Filters::add_filter('plugin_action_links_' . LeafletLayers::PLUGIN_ID . '/' . LeafletLayers::PLUGIN_ID . '.php', $this, 'add_plugin_action_links'); }
/** * Define the locale for this plugin for internationalization. * * Uses the LeafletLayers_i18n class in order to set the domain and to register the hook * with WordPress. * * @since 1.0.0.0 */ private function set_locale() { $plugin_i18n = new LeafletLayers_i18n(); $plugin_i18n->set_domain(LeafletLayers::PLUGIN_ID); LeafletLayers_Actions_Filters::add_action('plugins_loaded', $plugin_i18n, 'load_plugin_textdomain'); }
/** * Register callbacks for actions and filters * * @since 1.0.0 */ protected function register_hook_callbacks() { LeafletLayers_Actions_Filters::add_action('admin_notices', $this, 'show_admin_notices'); }
/** * Register callbacks for actions and filters * * @since 1.0.0 */ protected function register_hook_callbacks() { LeafletLayers_Actions_Filters::add_action('admin_init', $this, 'register_settings'); }