Comments Informatico Vivaldi started the conversationJune 6, 2022 at 11:29amThis FAQ doesn't work anymore function set_loggedout_id( $user_id ){ if( empty( $user_id ) ){ $user_id = 100; } return $user_id; } add_filter( 'determine_current_user', 'set_loggedout_id', 999, 1 );I inserted this rows at the end of Functions.PHP... What Should I do more? create an user called "100"? 1,851Miloš repliedJune 8, 2022 at 10:24amHi, Informatico VivaldiSorry for the delay.-Basically, what this does is, first it checks if nobody is logged in, the user ID would be zero; with no permissions/capabilities.Then it “tells” WordPress to replace the empty ID of a logged out user with a value of 100.-If you wish to allow certain roles to have capability to upload files, you can manage any roles and permissions easily.First install this plugin , User Roles Editor.Then edit the Subscriber role ( or any role you need, you can also add custom roles), and allow all logged in Subscribers, to upload files ( if that is what you wish to achieve)Let me know if that helped? Thank youKind Regards, Miloš Jovanović[email protected] Rate my supportTry our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/ wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community You can try wpDataTables add-ons before purchasing on these sandbox sites: Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables 1,851Miloš repliedJune 8, 2022 at 10:41amHi, Informatico Vivaldi Just wanted to add something to this, a correction. If this does not work, you can also create a user with ID 100, and add the upload_files capability to that user. Let me know how it goes. Thank youKind Regards, Miloš Jovanović[email protected] Rate my supportTry our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/ wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community You can try wpDataTables add-ons before purchasing on these sandbox sites: Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables Sign in to reply ...
This FAQ doesn't work anymore
I inserted this rows at the end of Functions.PHP... What Should I do more?
create an user called "100"?
Hi, Informatico Vivaldi
Sorry for the delay.
-
Basically, what this does is, first it checks if nobody is logged in, the user ID would be zero; with no permissions/capabilities.
Then it “tells” WordPress to replace the empty ID of a logged out user with a value of 100.
-
If you wish to allow certain roles to have capability to upload files, you can manage any roles and permissions easily.
First install this plugin , User Roles Editor.
Then edit the Subscriber role ( or any role you need, you can also add custom roles)
, and allow all logged in Subscribers, to upload files ( if that is what you wish to achieve)
Let me know if that helped? Thank you
Kind Regards,
Miloš Jovanović
[email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables
Hi, Informatico Vivaldi
Just wanted to add something to this, a correction.
If this does not work, you can also create a user with ID 100, and add the upload_files capability to that user.
Let me know how it goes. Thank you
Kind Regards,
Miloš Jovanović
[email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables