{"id":16506062,"url":"https://github.com/frc/wp-base","last_synced_at":"2025-08-31T20:32:44.476Z","repository":{"id":51090641,"uuid":"151682684","full_name":"frc/wp-base","owner":"frc","description":null,"archived":false,"fork":false,"pushed_at":"2022-02-15T16:22:59.000Z","size":45,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-04-03T15:21:30.251Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/frc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-10-05T07:01:30.000Z","updated_at":"2022-02-15T16:22:58.000Z","dependencies_parsed_at":"2022-09-21T15:23:32.325Z","dependency_job_id":null,"html_url":"https://github.com/frc/wp-base","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/frc/wp-base","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frc%2Fwp-base","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frc%2Fwp-base/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frc%2Fwp-base/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frc%2Fwp-base/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/frc","download_url":"https://codeload.github.com/frc/wp-base/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frc%2Fwp-base/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273034805,"owners_count":25034469,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-31T02:00:09.071Z","response_time":79,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-11T15:16:53.333Z","updated_at":"2025-08-31T20:32:44.441Z","avatar_url":"https://github.com/frc.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FRC - WP Base\n\nThis is a must-use plugin, plugin activation not required.\n\nTo activate module add theme support:\n\n`add_theme_support('frc-base-{SIDE}-{MODULE-NAME}');`\n\nFor example:\n\n`add_theme_support('frc-base-theme-disable-api');`\n\nAvailable sides:\n\n- `plugin` - Applied if supported plugin is activated\n- `login` - Login and access related modules\n- `admin` - Applied only when in admin panel (theme modules will not be loaded)\n- `theme` - Applied for theme, REST API and any public side of the application\n\n## Usage\n\nAdd theme support to `functions.php`.\n\nExample - recommended supports:\n\n```php\n// Theme\nadd_theme_support('frc-base-theme-clean-up');\nadd_theme_support('frc-base-theme-disable-api');\nadd_theme_support('frc-base-theme-disable-asset-versioning');\nadd_theme_support('frc-base-theme-disable-rest-api', [\n    'disabled' =\u003e ['/'],\n]);\nadd_theme_support('frc-base-theme-disable-trackbacks');\n\n// Admin\nadd_theme_support('frc-base-admin-clean-up');\nadd_theme_support('frc-base-admin-defaults-tinymc');\nadd_theme_support('frc-base-admin-disable-update-checks');\n\n// Plugins\nadd_theme_support('frc-base-plugin-all');\n```\n\n### Enable side´s all modules\n\nExample - enable all theme related modules:\n\n`add_theme_support('frc-base-theme-all');`\n\n### Disable modules\n\nIt is possible to disable modules added by 'default' or 'all' feature by adding `!` begeing of the feature.\n\nExample:\n\n```php\nadd_theme_support('frc-base-theme-all'); // Activate all plugin modules\n\nadd_theme_support('!frc-base-plugin-woocommerce');  // Disable WooCommerce plugin module\n```\n\n## Feature options\n\nSome modules supports options:\n\n`frc-base-theme-disable-rest-api`:\n\n```php\nadd_theme_support('frc-base-theme-disable-rest-api', [\n    'disabled' =\u003e ['/'], // Disable all routes\n    // or\n    'disabled' =\u003e ['users', 'posts'], // Disable user \u0026 post routes\n\n    'allowed' =\u003e ['posts'], // If all routes has been disabled but allow 'posts' route\n    \n    // super admin / admins have access to all routes always, other logged in users can be limited as follows\n    'authenticated' =\u003e [\n         'disabled' =\u003e ['/'],\n         'allowed' =\u003e ['posts'],\n     ]\n    \n]);\n```\n\n## Available modules\n\nAdmin\n\n- `frc-base-admin-clean-up`\n- `frc-base-admin-defaults-tinymc`\n- `frc-base-admin-defaults` `(enabled by default)`\n- `frc-base-admin-disable-update-checks`\n\nLogin\n\n- `frc-base-login-defaults` `(enabled by default)`\n- `frc-base-login-force`\n- `frc-base-login-expiration`\n\nPlugin\n\n- `frc-base-plugin-acf`\n- `frc-base-plugin-auth0`\n- `frc-base-plugin-defaults` `(enabled by default)`\n- `frc-base-plugin-gravityforms`\n- `frc-base-plugin-woocommerce`\n\nTheme\n\n- `frc-base-theme-clean-up`\n- `frc-base-theme-defaults` `(enabled by default)`\n- `frc-base-theme-disable-api`\n- `frc-base-theme-disable-asset-versioning`\n- `frc-base-theme-disable-rest-api`\n- `frc-base-theme-disable-trackbacks`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrc%2Fwp-base","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffrc%2Fwp-base","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrc%2Fwp-base/lists"}