Changeset 2889495
- Timestamp:
- 03/29/2023 09:13:51 PM (3 years ago)
- Location:
- shadow-terms
- Files:
-
- 2 edited
-
tags/1.0.0/readme.txt (modified) (2 diffs)
-
trunk/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
shadow-terms/tags/1.0.0/readme.txt
r2825534 r2889495 3 3 Tags: terms, related, content 4 4 Requires at least: 5.9 5 Tested up to: 6. 15 Tested up to: 6.2 6 6 Stable tag: 1.0.0 7 7 License: GPLv2 or later … … 20 20 Support can be added to a custom post type with code like: 21 21 22 ``` 23 <?php 24 // Register the organization post type normally. 25 register_post_type( 'organization', $args ); 22 <?php 23 // Register the organization post type normally. 24 register_post_type( 'organization', $args ); 26 25 27 // Add support for Shadow Terms to the organization post type. 28 add_post_type_support( 29 'organization', 30 'shadow-terms', 31 array( 32 // Add post types that support the organization_connect taxonomy. 33 'person', 34 'press-release', 35 ) 36 ); 37 ``` 26 // Add support for Shadow Terms to the organization post type. 27 add_post_type_support( 28 'organization', 29 'shadow-terms', 30 array( 31 // Add post types that support the organization_connect taxonomy. 32 'person', 33 'press-release', 34 ) 35 ); 38 36 39 37 With the example above, whenever an `organization` is created, a term with the same name will be created under the `organization_connect` taxonomy. When a person or press release is edited, that term will be available for assignment through standard WordPress taxonomy interfaces. -
shadow-terms/trunk/readme.txt
r2825533 r2889495 3 3 Tags: terms, related, content 4 4 Requires at least: 5.9 5 Tested up to: 6. 15 Tested up to: 6.2 6 6 Stable tag: 1.0.0 7 7 License: GPLv2 or later
Note: See TracChangeset
for help on using the changeset viewer.