SeedProd Documentation

Documentation, Reference Materials, and Tutorials for SeedProd

Permission Filters

SeedProd provides a set of WordPress filters that let you control which user roles and capabilities can access different areas of the SeedProd interface. Use these filters in your theme’s functions.php file or a custom plugin to restrict or expand access as needed.

Note: This document is intended for developers. For more information on using WordPress filters, see the WordPress Developer Reference for add_filter().


Available Permission Filters

These filters control which capability is required to access each section of the SeedProd menu. All default to edit_others_posts.

  • seedprod_main_menu_capability
  • seedprod_dashboard_menu_capability
  • seedprod_subscribers_menu_capability
  • seedprod_growthtools_menu_capability
  • seedprod_settings_menu_capability
  • seedprod_templates_menu_capability
  • seedprod_builder_menu_capability

Page Management Actions

These filters control which capability is required to perform page management actions. All default to list_users.

  • seedprod_delete_subscriber_capability
  • seedprod_unarchive_pages_capability
  • seedprod_archive_pages_capability
  • seedprod_trash_pages_capability

Plugin Management Actions

These filters control which capability is required for plugin-related actions within SeedProd.

  • seedprod_install_plugins_capability — defaults to install_plugins
  • seedprod_update_plugins_capability — defaults to update_plugins
  • seedprod_activate_plugins_capability — defaults to activate_plugins

Usage Example

To change the capability required to access the SeedProd builder to manage_options (Administrator only), add the following to your theme’s functions.php file:

add_filter( 'seedprod_builder_menu_capability', function() {
    return 'manage_options';
} );

Apply the same pattern to any of the filters listed above, substituting the filter name and the WordPress capability you want to require. For a full list of WordPress capabilities, see the WordPress Roles and Capabilities documentation.

Related Articles