Creating a forum user profile page with Backbone.js

We looked at the basic structure for a forum user profile page at the beginning of the Understanding the importance of code structuring section. In this section, we will implement the mentioned tasks with the use of Backbone.js and Underscore.js. As usual, we will update our main forum management plugin with the necessary code.

Our first task will be to load the personal information of forum users. First, we need some custom rewrite rules to handle the routing for the Backbone.js-based user profile screen. Let's start by creating the necessary action hooks to handle the custom routing. We already have a custom route handler function called manage_user_routes in the WPWAF_Config_Manager

Get Wordpress Web Application Development - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.