开发者 | coffee2code |
---|---|
更新时间 | 2023年8月23日 02:14 |
捐献地址: | 去捐款 |
PHP版本: | 4.6 及以上 |
WordPress版本: | 6.3 |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
quick-drafts-access.zip
inside the plugins directory for your site (typically wp-content/plugins/
)Does that post type have any drafts? By default, the plugin does NOT display the drafts links if no drafts are present for that post type. This behavior can be overridden (see the Filters section). The "All Drafts" link is always hidden for users who are responsible for all drafts of a given post type, assuming the "My Drafts" link is configured to be displayed (which it is by default).
Like the Posts and Pages admin tables in WordPress, the default behavior of the plugin is to not show the drafts link if none are present for the post type since there isn't anything meaningful to link to. Bear in mind that the behavior can be overridden (see the Filters section).
Yes, which is why the plugin hides the "All Drafts" link when the "My Drafts" link is configured to be displayed (which it is by default) and the user is responsible for all of the drafts for a given post type.
setUp()
, namely to actually register post typesc2c_quick_drafts_access_post_types()
to actual use the post types sent to itbin/
into tests/
tests/
into tests/phpunit/
tests/phpunit/tests/
phpunit.xml
to phpunit.xml.dist
per best practices