But I have noticed that instead of wp_user I have wpku_user.
In fact everything listed is prefixed with wpku_ instead of just wp_
Any help is appreciated
]]>Inside wp-user-avatar/includes/class-wp-user-avatar-shortcode.php
, inside public function wpua_edit_shortcode
replace this
$valid_user = current_user_can('edit_user', $get_user) ? $get_user : null;
to this
$valid_user = current_user_can('edit_user', $get_user->ID) ? $get_user : null;
Also, capability edit_user
need to be edit_users
or include both of them.
Have a nice work and we waiting new update!
Thanks!
Is this correct? And if so, do you have any suggestions for working around this?
Many thanks,
Jamie
https://www.ads-software.com/plugins/wysija-newsletters/
]]>I’m a little torn on what strategy to use for integrating the userbases of the two platforms.
For right now, I’m essentially just running wp_create_user and storing redundant information in the WP database which includes user metadata that syncs with the user ID of the other app. However, the idea of keeping two copies of essentially same data bugs me.
So I’m wondering what other strategies exist for user integration between systems.
Is there a way to “override” or custom map the WP_User where I can put an interface or filter in front of WP_user so that whenever WordPress attempts to get user information, it goes through my custom interface so that I can manipulate the data as needed (and by this I mean just mapping the data from the other app to match what WP_User properties)?
I was thinking about extending WP_User class but then I’m still unsure how I could plug the new class into everything.
I was able to do this with comments by using the ‘comments_array’ filter to create my own stdClass object to return but I couldn’t find any filters for the user data.
Appreciate any pointers! Thanks!
]]>Manually creating a Subscriber. User is created.
https://www.ads-software.com/plugins/leaky-paywall/
]]>error_reporting(E_ALL);
require("../../wp-load.php");
$source_file = 'role_source';
if(($source_handle = fopen($source_file, "r")) !== false) {
while(($row = fgetcsv($source_handle)) !== false) {
if(count($row) > 2) {
if(($user = get_user_by('id', $row[1])) !== false) {
for($i = 2; $i < count($row); $i++) {
if(!$user->has_cap($row[$i])) {
$user->add_role($row[$i]);
}
}
}
}
}
fclose($source_handle);
}
If I check the users in the database afterwards their wp_capabilities entries in wp_usermeta have been updated, but that’s all. In my template when I call current_user_can() with one of the roles that should have been added to my test user (and that I can see listed in the database) it returns false. So it looks like there’s something else that should be happening that isn’t, or something else I should be doing that I don’t know about.
]]>i get some activity from user ‘wordpress’, ‘id’=0, that logged out from (website). Have anybody know what is this activity?
i search my wp users in database also, i cannot find any username named wordpress.
https://www.ads-software.com/extend/plugins/threewp-activity-monitor/
Thank you in advance for help.
Rihan
https://www.ads-software.com/plugins/threewp-activity-monitor/
]]>Can you share any solutions abuot OAuth 3 legged authentication.
Right now I have already setup oAuth server and had it successfully run an HTTP request for a token.
What I would like to ask for help is that – how can I authenticate a specific user with their credentials with oAuth to interact with their posts using a REST API plugin. I need users credentials to only use CRUD operations under their names.
Thanks..
Note : wp-api plugin is also working.
]]>