10up / distributor

Share content between your websites.
https://distributorplugin.com
GNU General Public License v2.0
640 stars 156 forks source link

Used Distributable PostTypes for Check Post Type Permissions via REST API #1246

Closed mehul0810 closed 4 months ago

mehul0810 commented 4 months ago

Description of the Change

After checking on how to test and verifying the list of post types received for get_post_types() and distributable_post_types() and then did the necessary change to replace functions.

Closes #912

How to test the Change

Access REST API endpoint: /wp-json/wp/v2/distributor/post-types-permissions (Make sure you use block theme like 2024)

Changelog Entry

Fixed - Bug fix

Credits

Props @peterwilsoncc @mehul0810

Checklist: