Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Writing a new plugin – get 404 not found when accessing screen


kunalb
Participant

@kunalb

@farmerpaul I’ve added root components starting from bp_loaded, with the component registered at setup_globals (setting up $bp->{component name}, etc.) and bp_setup_root_components and adding the controller for the component at wp,1 and navigation at wp,2 (I needed them to be after init as I was joining custom posts types which become available at init).

See these files:
http://code.google.com/p/buddypress-custom-posts/source/browse/trunk/buddypress-custom-posts/controller.php
http://code.google.com/p/eventpress/source/browse/trunk/eventpress/controllers/main.php

Skip to toolbar