Community Setup

Setting up Social Link Pages Community

Initial setup

The community version includes all of the features of the Pro version. It also adds new features for using the Social Link Pages plugin with your community or as a saas (software-as-a-service) web app.

Permissions

If your users are seeing the "Sorry, you are not allowed to upload files." error when trying to upload media within the Social Link Page page builder, they probably need to have the " upload_files" capability added to their user role.

Example: if you let visitors register on your site and build pages, they're likely added as "subscribers". The "subscriber" user role does not have the " upload_files" capability.

Here's an example function for adding the "upload_files" capability to the "subscriber" role. BE CAREFUL GRANTING CAPABILITIES TO ROLES!

function slp_add_upload_files_cap() {
    // Gets the subscriber role object.
    $role = get_role( 'subscriber' );
 
    // Add a new capability.
    $role->add_cap( 'upload_files', true );
}
 
add_action( 'init', 'slp_add_upload_files_cap', 11 );