Timeline for Update User Role Across Network when Main Site User is Updated
Current License: CC BY-SA 3.0
25 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Aug 23, 2011 at 15:33 | history | bounty ended | CommunityBot | ||
Aug 22, 2011 at 15:04 | vote | accept | Pippin | ||
Aug 22, 2011 at 15:04 | answer | added | Pippin | timeline score: 2 | |
Aug 22, 2011 at 15:01 | comment | added | Pippin | Okay, I've found a way around it. See my answer below. | |
Aug 21, 2011 at 13:03 | comment | added | kaiser | Have you tried to dump? Could you paste(bin) the dump? Thanks. | |
Aug 20, 2011 at 19:39 | comment | added | Pippin | Sorry, no, realized that won't work since MS already uses only one table for users. | |
Aug 20, 2011 at 19:20 | comment | added | Pippin | Just came across something that may work perfectly. See any reason why setting up a custom user table (in the main db) that is shared between the network sites wouldn't work? Like this: codegarage.com/blog/2009/04/… | |
Aug 19, 2011 at 16:12 | comment | added | kaiser | I'd dump (just in case) all of them and manually search in the browser output for "user", "update", "profile" & "role". | |
Aug 19, 2011 at 15:33 | comment | added | Pippin | Do you happen to know what the hook(s) is called? I've looked for one but have not been successful. | |
Aug 19, 2011 at 14:52 | comment | added | kaiser | No, the core hooks. At least both plugins have to hook in somewhere as long as they are no stand-alone. So I'd var_dump that and try to hook additional stuff to it. So the task would be something like "Monitor hooked actions and in case hook additional action". | |
Aug 19, 2011 at 14:16 | comment | added | Pippin | Do you mean in the amember admin? | |
Aug 19, 2011 at 0:10 | comment | added | kaiser |
You could try to var_dump() the filters on both admin pages to see what functions are attached to them. I guess that's the fastest way to get behind what's happening.
|
|
Aug 18, 2011 at 23:28 | comment | added | Pippin | @kaiser let us continue this discussion in chat | |
Aug 18, 2011 at 23:28 | comment | added | Pippin | The amember plugin isn't a WP plugin. It's a plugin that runs in the amember system that allows it to access the WP database. | |
Aug 18, 2011 at 23:07 | comment | added | kaiser | You could check for the hooks where the plugin(s?) add their actions and simply run some custom code afterwards. | |
Aug 18, 2011 at 23:04 | history | edited | kaiser | CC BY-SA 3.0 |
added 80 characters in body
|
Aug 18, 2011 at 22:53 | comment | added | Pippin | The update role function is done through the amember wordpress plugin, so I cannot modify it. So I really need a way of detecting when a user role is updated, or just a general way to always keep roles in sync. Perhaps a check that runs on a cron job. | |
Aug 18, 2011 at 22:49 | comment | added | kaiser | n/p. Why don't you then include the file and execute the function in the update hook? | |
Aug 18, 2011 at 21:52 | comment | added | Pippin | Sorry, that wasn't very clear. I just mean that the user role is updated manually via a function, and not from the user's admin page in WP. | |
Aug 18, 2011 at 21:40 | history | tweeted | twitter.com/#!/StackWordPress/status/104306715272560640 | ||
Aug 18, 2011 at 21:05 | comment | added | kaiser | What exactly does "external" function mean? You can include every file from every where, so including and triggering it during runtime on hooked functions will work. | |
Aug 15, 2011 at 18:24 | answer | added | WPExplorer | timeline score: 1 | |
Aug 15, 2011 at 15:31 | answer | added | PrivateUser | timeline score: 0 | |
Aug 15, 2011 at 15:09 | history | bounty started | Pippin | ||
Aug 9, 2011 at 17:06 | history | asked | Pippin | CC BY-SA 3.0 |