Info
- 3 posts
- 3 voices
- Started 4 years ago by darkling235
- Latest reply from Detective
- This topic is not resolved
Forumula for converting wordpress plugins
-
- Posted 4 years ago #
Is there a normal process or formula for converting a wordpress plugin to a bbpress plugin? Let's say that it uses all the same tables and everything? Is there a way to switch it over or do you just have to re-engineer it?
-
- Posted 4 years ago #
Well some are far easier than others.
First look for $wpdb and change to $bbdb
Then you have look at things like
get_optionand other functions and see if they can easily use thebb_get_optionor otherbb_version of the function.But even if the alternative function exists you have to be sure that it's doing what you want. Things that relate to users are similar but things that relate to posts have to be change to topics and then there is comments vs posts.
-
- Posted 4 years ago #
Other function names:
* get_usermeta => bb_get_usermeta (the same applies to delete usermeta)
* add_option doesn't exists
* update_option => bb_update_option
* $current_user->has_cap => bb_current_user_has_cap (or something like that, check the files in bb-includes).
* is_user_loggedin => bb_is_user_logged_inAnd others ...
-
You must log in to post.