Download the PHP package viget/viget-post-type-taxonomy-sync without Composer

On this page you can find all versions of the php package viget/viget-post-type-taxonomy-sync. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package viget-post-type-taxonomy-sync

WordPress 5.9+ PHP 8.2+ Latest release CI status License

Viget Post Type Taxonomy Sync

Keeps a post type and a taxonomy in sync automatically: publish a post and a matching term is created (and kept up to date); create or edit a term and the matching post follows along. Handy when a taxonomy needs to double as a lightweight, linkable "profile" for a post — e.g. syncing a product post type to a product-line taxonomy so other content can be tagged with a product without duplicating its data.

Features

Installation

Manual

  1. Download the latest release zip.
  2. Upload it via Plugins → Add New → Upload Plugin, or extract it to wp-content/plugins/viget-post-type-taxonomy-sync/.
  3. Activate the plugin.

Composer

Requires composer/installers (installed automatically as a dependency) to place the plugin in wp-content/plugins/.

Usage

  1. Go to Settings → Post/Tax Sync.
  2. Add a mapping between a post type and a taxonomy, then save.
  3. Publishing a post of that type creates/updates a term of that taxonomy with a matching name and slug (and vice versa).
  4. Use the row's Sync button at any point to backfill existing content or clean up orphaned terms/posts for that mapping.

A post type can sync to several taxonomies, each with its own Sync row. A taxonomy syncs to one post type, so a second mapping for a taxonomy that's already mapped isn't saved. If both the post type and taxonomy are hierarchical, parent/child structure is mirrored automatically.

Auto-Updates

This plugin checks GitHub releases every 12 hours and surfaces available updates directly in Plugins in wp-admin — no wordpress.org listing required. See includes/class-github-plugin-updater.php.

Note: shipping a custom update checker is intentionally incompatible with wordpress.org's plugin directory (the Plugin Check tool flags it as a hard error under plugin_updater_detected). If this plugin is ever submitted there, the updater would need to be removed first.

Developer API

Public methods, filters, and REST API routes are documented in docs/api.md.

Development

Local WordPress environment

Tests

PHPUnit tests run against a real WordPress install via @wordpress/env's tests-wordpress/tests-cli services (WP core's test suite is downloaded automatically the first time it's needed):

The suite covers Core, Settings, Sync (including regression tests for two WordPress-core hook-signature bugs fixed in 2.0.0 — see the changelog), one post type syncing to several taxonomies, the data upgrade, Admin, the REST API, and the GitHub updater (with mocked HTTP responses). Run it as multisite with npx wp-env run tests-cli --env-cwd=wp-content/plugins/viget-post-type-taxonomy-sync -- env WP_MULTISITE=1 vendor/bin/phpunit.

Releasing a new version

Write the changelog entry first. Add a = X.Y.Z = section at the top of the Changelog in readme.txt for the version you're about to cut. The release command refuses to run without it.

Then:

This bumps package.json, syncs the version into the plugin header/constant and readme.txt (see .github/workflows/release.yaml, which builds the plugin zip and publishes a GitHub release.

Never edit the version by hand. Four places have to agree - package.json, the plugin header, VGPTTS_PLUGIN_VERSION, and readme.txt's Stable tag - and the script is what keeps them that way.

If the changelog entry is missing you'll get:

Nothing is written when that happens, so add the entry and re-run. npm version has already bumped package.json by then, so either amend it or let the re-run carry it.

Changelog

See readme.txt for the full version history.

License

GPL-2.0-or-later


All versions of viget-post-type-taxonomy-sync with dependencies

PHP Build Version
Package Version
Requires composer/installers Version ^1.0 || ^2.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package viget/viget-post-type-taxonomy-sync contains the following files

Loading the files please wait ...