![]() ‘edit_post’ – For publishing post details of a new or modified post.‘admin_menu’ – For adding an additional admin menu for the plugin.All these events can trigger hooks, which are nothing but PHP functions that can be called and executed within the WordPress platform.įor building this plugin, we have tapped into some of the WordPress action hooks which allow us to capture the state of the site content and publish it over PubNub so that the updates can reflect in the visualization. For example: a site visitor opening a post, an author submitting a post for review, an editor publishing a post, or a random visitor commenting on a post. The WordPress platform offers a bunch of hooks, in the form of actions, which can be triggered along with user performed events. Note: – This plugin is created for demo purpose and not tested on production WordPress site. In essence, SiteViz can portray in one picture what might otherwise take you hundreds of lines of scrolling and searching. This is where a plugin like SiteViz can help you by visually portraying the site content and showing some essential metrics, such as, number of posts in draft/pending state, posts per category, popular posts, number of comments unapproved/approved etc. And as the content increases, you have to deal with information overload. ![]() If you are a site administrator managing a content website, then you have certain challenges in managing your site. The SiteViz plugin offers a bird’s eye view of the entire site and its contents. The plugin is called SiteViz, short for ‘Site Visualization’, and it creates a tree like visualization of the content, starting from categories, to posts and their comments. Since WordPress platform is based on PHP, we are going to use the PubNub’s PHP SDK in this demo. ![]() We will be building a plugin which can create a visualization of all the content within a WordPress site, and of course it will be able to update itself in real time. In this blog post we are going to demonstrate how to embed PubNub inside WordPress to enable some cool real-time features within the WordPress platform.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |