1. Go to this page and download the library: Download isotopsweden/wp-syncs library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
isotopsweden / wp-syncs example snippets
// With `register_post_type`
register_post_type( 'book', [
'syncs' => true
] );
// With the filter.
add_filter( 'syncs_post_types', function ( $post_types ) {
return ['page', 'post', 'book'];
} );
// With `register_taxonomy`
register_taxonomy( 'group', 'post', [
'syncs' => true
] );
// With the filter.
add_filter( 'syncs_taxonomies', function ( $taxonomies ) {
return ['tag', 'category', 'group'];
} );
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.