1 follower Follow

Introducing WP Core pluggin v2.0 - Developer friendly

This new update we are getting ready for you has a ton of new updates and here we will bring some of these new ideas and builds to you before the release that is to follow soon.

The main goal of this plugin was to change it from the plugin that brings Ziggeo to WordPress to a Core plugin that does so much more.

In the same time as it does that, to also be very friendly to the WordPress devs looking for quick and simple ways of utilizing the power of video Zigggeo brings.

This is achieved by several main ways:

  1. JS class that you can ping at any time and utilize for your requirements
  2. JS Hooks to hook into different aspects of the plugin on client side
  3. PHP Hooks (actions and filters) to hook into different sections of the back end
  4. Simple AJAX support
  5. Improved way to hook into the addons/integrations page with your own plugin
  6. Own usage of the same hooks, allowing you to quickly see examples of how we are using them and making awesome changes.


JS class

Lets face it, it is super easy to just post different options to the window object. While easy it makes it hard to find and use in your own plugin.

We have created ZiggeoWP object that you can access and which holds the details that you might need or want to use.


JS Hooks

Most common thing to see in Wordpress is action and filter setup. Sometimes just one filter or one action is all you need to bring the functionality you need or want.

We also added JS based hooks working in a similar fashion. This makes it super easy to hook into various segments, from templates editor to API.


PHP Hooks

We have added almost 30 hooks for you. To be specific it is 18 filters and 10 actions.

Now only did we add the hooks, we also looked to utilize our own hooks as much as possible. All of the hook examples can be found in a single file making it easy to find, edit, and re-utilize.

This is the list of the actions you will have available:

  1. Current user hook
    add_action('ziggeo_get_user_modify', 'your-function-name');
    * Allows you to change the details of the current user. Useful if you want to change the name of the current user or alter some other details before they are used by our plugin.

  2. Default recorder template code
    add_action('ziggeo_get_template_recorder_default', 'your-function-name');
    * Allows you to change the code that is used as recorder default

  3. Default comments recorder template name
    add_action('ziggeo_get_template_recorder_comments', 'your-function-name');
    * Allows you to change the template name that is used as default for comments recorder

  4. Default player template code
    add_action('ziggeo_get_template_player_default', 'your-function-name');
    * Allows you to change the code that is used as player default

  5. Default comments player template name
    add_action('ziggeo_get_template_player_comments', 'your-function-name');
    * Allows you to change the template name that is used as default for comments player

  6. Add custom code or messages to templates editor
    add_action('ziggeo_settings_before_editor', 'your-function-name');
    * Allows you to pass any info into the templates editor. This will output the code right above the editor textarea.

  7. Add your own code after the assets have been registered and loaded
    add_action('ziggeo_assets_post', 'your-function-name');
    * Allows you to output your own code after all other assets have been loaded.

  8. Add custom data points within ZiggeoWP object, allowing things to be within the same namespace
    add_action('ziggeo_add_to_ziggeowp_object', 'your-function-name');
    * Useful if you are creating a plugin and want to keep everything within the ZiggeoWP object

  9. Add your own buttons into the toolbar above the posts
    add_action('ziggeo_toolbar_button', 'your-function-name');
    * Useful when you want specific embedding type to be used for recording as you add or edit posts

  10. Have an integration that connects our plugin with some other? Show it in the Ziggeo's Integrations page
    add_action('ziggeo_list_integration', 'your-function-name');
    * This makes it possible for your plugin to run, yet in the same time for people to disable it from processing Ziggeo codes


This is the list of the filters you will have available:

  1. v2 application creation hook
    add_filter('ziggeo_setting_header_code', 'your-function-name');
    * Allows you to modify any options used to create the V2 application by hooking into that hook

  2. Change which templates are available when you use Ziggeo plugin (like ziggeoplayer, ziggeorecorder, ziggeovideowall, etc.)
    add_filter('ziggeo_manage_template_options_pre', 'your-function-name');
    * Allows you to extend the plugin and create your own custom templates to which you can react and fully customize.

  3. Version and revision hook
    add_filter('ziggeo_assets_init', 'your-function-name');
    + Allows you to influence which revision (and version) of our file should be loaded dynamically by hooking into it

  4. Comments recorder JS code output
    add_filter('ziggeo_comments_js_template_vrto', 'your-function-name', 10, 2);
    * If you want to change the JS code that is outputted to the browser when video comments recorder is requested (video required and text optional) this hook will allow you to change all JS code

  5. Pre template search
    add_filter('ziggeo_content_filter_pre', 'your-function-name');
    * Allows you to grab and inspect or modify the content that is about to be checked for ziggeo templates

  6. Post template search
    add_filter('ziggeo_content_filter_post', 'your-function-name');
    * Allows you to grab and inspect or modify the content that was checked for ziggeo templates

  7. Recorder tags
    add_filter('ziggeo_template_parsing_tag_set', 'your-function-name', 10, 2);
    * Allows you to change the tag that is added as the location where the recording is taking place.

  8. Template Parameters list
    * Allows you to change the array of accepted parameters. useful to add your own that you want to change before embedding is used.

  9. Available Template bases
    add_filter('ziggeo_setting_available_templates', 'your-function-name');
    * Allows developers to create their own base and code based around it

  10. Filter custom tags from content having our embedding codes
    add_filter('ziggeo_custom_tags_processing', 'your-function-name');
    * Allows you to extend the available tags you can use in your embedding. It is recommended to use percentage around it like %TAG%

  11. Add custom sections into the simple / easy templates builder
    add_filter('ziggeo_templates_editor_easy_parameters_section', 'your-function-name');
    * Allows you to add your own section to the parameters editor (simple)

  12. Add custom sections into the advanced templates builder
    add_filter('ziggeo_templates_editor_advanced_parameters_section', 'your-function-name');
    * Allows you to add your own section to the parameters editor (advanced)

  13. Add your own assets or code before main JS and CSS files are called from servers
    add_filter('ziggeo_assets_pre_server_load', 'your-function-name');
    * Allows you to add comments before the HTML code output and output your own code

  14. Add your own assets or code after main JS and CSS files are called from servers
    add_filter('ziggeo_assets_pre_local_load', 'your-function-name');
    * Allows you to close comments after the HTML code output for scripts and output your own code

  15. Use AJAX hooks to get notified when AJAX call was made through Ziggeo core. Allows plugin developers to listen for specific plugin related calls
    add_filter('ziggeo_ajax_call' 'your-function-name');
    * for calls originating from Admin side
    add_filter('ziggeo_ajax_call_client' 'your-function-name');
    * for calls originating from Public side

  16. Make sure core functions do not process your new parameters
    add_filter('ziggeo_parameter_prep_skip_list' 'your-function-name');
    + Useful when adding new parameters that should not be handled by the core functions


Simple AJAX support

Wordpress has an easy way to add AJAx to the plugin and theme. Still in case you want to, there is also AJAX implementation through the core Ziggeo plugin. It allows the plugin to listen to the message submitted to servers and react when needed.


Integrations page

Our plugin had an integrations tab. In it you would see the integrations that would connect our plugin to some other plugin, like Gravity Forms integration.

Instead of creating modules of our plugin that are not as easy to manage or hook into the plugin, we made it possible for you to hook into from your theme or plugin through the use of simple hook.

Once present, it allows administrators to disable the integration itself while still leaving your plugin running, if that is what their workflow is all about.

This also allows us to have the least amount of code running. The old modules approach would load everything and then decide if it is used or not. This new approach however allows you to install only the things you will actually be using.


Utilizing own hooks

Any type of documentation is helpful. Having comments in the code is another layer that helps around the same. Still seeing the exact codes that can be used, and how they are used is always the best way to get things done quickly and easily.


What's next?

We will post on the forum a bit more about the new updates. We will do this before the update is released as well as after we do. We are also looking to release several different integrations following this.

What you can expect are integrations for:

  1. bbPress
  2. Job Manager
  3. Resume Manager

To make it simple to update and maintain as well , the videowalls will be moved into a new plugin on its own within few new revisions of the plugin.

Of course as this happens, the same calls and hooks will still be utilized, so that the switch is easy and simple :)

Have a question or suggestion? Comment and let us know.


Please sign in to leave a comment.