{"id":22964725,"url":"https://github.com/devaloka/cfs-network-support","last_synced_at":"2025-07-24T10:37:09.831Z","repository":{"id":56966304,"uuid":"50728434","full_name":"devaloka/cfs-network-support","owner":"devaloka","description":":electric_plug: [STAND-ALONE][Plugin] A Custom Field Suite add-on that adds an ability to support Network (Multisite environment).","archived":false,"fork":false,"pushed_at":"2017-06-12T02:25:44.000Z","size":30,"stargazers_count":4,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-19T19:57:02.885Z","etag":null,"topics":["custom-fields","multisite","network","plugin","wordpress"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/devaloka.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-01-30T14:37:31.000Z","updated_at":"2024-05-23T18:06:17.000Z","dependencies_parsed_at":"2022-08-21T11:20:28.046Z","dependency_job_id":null,"html_url":"https://github.com/devaloka/cfs-network-support","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/devaloka/cfs-network-support","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devaloka%2Fcfs-network-support","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devaloka%2Fcfs-network-support/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devaloka%2Fcfs-network-support/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devaloka%2Fcfs-network-support/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devaloka","download_url":"https://codeload.github.com/devaloka/cfs-network-support/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devaloka%2Fcfs-network-support/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266828785,"owners_count":23991220,"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-07-24T02:00:09.469Z","response_time":99,"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":["custom-fields","multisite","network","plugin","wordpress"],"created_at":"2024-12-14T20:12:11.786Z","updated_at":"2025-07-24T10:37:09.803Z","avatar_url":"https://github.com/devaloka.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CFS Network Support\n\n[![Latest Stable Version][stable-image]][stable-url]\n[![Latest Unstable Version][unstable-image]][unstable-url]\n[![License][license-image]][license-url]\n[![Build Status][travis-image]][travis-url]\n\nA [Custom Field Suite][custom-field-suite] add-on plugin that adds an ability to\nsupport Network (Multisite environment).\n\n## Installation\n\n### Manual Installation\n\n1.  Just copy all files into `\u003cABSPATH\u003ewp-content/plugins/cfs-network-support/`.\n\n### Manual Installation (as a Must-Use plugin)\n\n1.  Just copy all files into\n    `\u003cABSPATH\u003ewp-content/mu-plugins/cfs-network-support/`.\n\n2.  Move `cfs-network-support/loader/50-cfs-network-support-loader.php`\n    into `\u003cABSPATH\u003ewp-content/mu-plugins/`.\n\n### Installation via Composer\n\n1.  Install via Composer.\n\n    ```sh\n    composer require devaloka/cfs-network-support\n    ```\n\n### Installation via Composer (as a Must-Use plugin)\n\n1.  Install via Composer.\n\n    ```sh\n    composer require devaloka/cfs-network-support\n    ```\n\n2.  Move `cfs-network-support` directory into\n    `\u003cABSPATH\u003ewp-content/mu-plugins/`.\n\n3.  Move `cfs-network-support/loader/50-cfs-network-support-loader.php`\n    into `\u003cABSPATH\u003ewp-content/mu-plugins/`.\n\n## Usage\n\nJust pass Site ID with `site_id` key to CFS API options.\n\n### Get field value(s)\n\n```php\necho CFS()-\u003eget('first_name', false, ['site_id' =\u003e 1]);\n```\n\nSee also [get - Custom Field Suite](http://docs.customfieldsuite.com/api/get.html).\n\n### Save field value(s)\n\n```php\n$field_data = ['first_name' =\u003e 'Matt'];\n$post_data  = ['ID' =\u003e 678];\n\nCFS()-\u003esave($field_data, $post_data, ['site_id' =\u003e 1]);\n```\n\nSee also [save - Custom Field Suite](http://docs.customfieldsuite.com/api/save.html).\n\n### Get reverse-related Posts\n\n```php\n$related_ids = CFS()-\u003eget_reverse_related($post-\u003eID, [\n    'field_name' =\u003e 'related_events',\n    'post_type'  =\u003e 'news',\n    'site_id'    =\u003e 1,    \n]);\n```\n\nSee also [get\\_reverse\\_related - Custom Field Suite](http://docs.customfieldsuite.com/api/get_reverse_related.html).\n\n[custom-field-suite]: https://wordpress.org/plugins/custom-field-suite/\n\n[stable-image]: https://poser.pugx.org/devaloka/cfs-network-support/v/stable\n[stable-url]: https://packagist.org/packages/devaloka/cfs-network-support\n\n[unstable-image]: https://poser.pugx.org/devaloka/cfs-network-support/v/unstable\n[unstable-url]: https://packagist.org/packages/devaloka/cfs-network-support\n\n[license-image]: https://poser.pugx.org/devaloka/cfs-network-support/license\n[license-url]: https://packagist.org/packages/devaloka/cfs-network-support\n\n[travis-image]: https://travis-ci.org/devaloka/cfs-network-support.svg?branch=master\n[travis-url]: https://travis-ci.org/devaloka/cfs-network-support\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevaloka%2Fcfs-network-support","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevaloka%2Fcfs-network-support","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevaloka%2Fcfs-network-support/lists"}