User Role Editor Pro version 4.54

User Role Editor Pro version 4.54 was published at November 25th, 2019. It contains one new feature related to add-ons data replication for WordPress multisite and one bug fix.

Changes List

Core version: 4.52.1

  • New: Multisite: “Network Admin->Users->User Role Editor->Network Update” URE Pro uses by default the main blog as a source of add-ons settings to replicate for all network. New custom filter ‘ure_get_addons_source_blog’ allows to use as a source blog any other existing subsite. Filter accepts single parameter – main blog ID by default. User this filter to return ID of blog/subsite which you wish to use as a source of add-ons settings for all other subsites. You can find subsite ID at the “Network Admin->Sites->Edit” link under the selected site row.
    add_filter( 'ure_get_addons_source_blog', 'ure_get_addons_source_blog', 10, 1 );
    
    function ure_get_addons_source_blog( $blog_id ) {
    
        $blog_id = 2;   // Subsite 1
        
        return $blog_id;
    }
    
  • Fix: PHP Notice: Undefined variable: post_id in /wp-content/plugins/user-role-editor-pro/pro/includes/classes/content-view-restrictions-editor.php on line 150
Share