Forum Replies Created
Viewing 5 posts - 1 through 5 (of 5 total)
-
AuthorPosts
-
ccjeagleMember@Steve- Obviously it is!
Thanks much. This is really powerful.
January 14, 2016 at 9:49 pm in reply to: Allow two plugins to use piklist_empty_post_title filter #5616
ccjeagleMemberHi,
For my scenario which sets title based on metabox input, just realized ‘save_post_{custom_post_type}’ will be another approach. When the metabox content is updated later, the title can also be updated.
Thanks.
January 14, 2016 at 9:06 pm in reply to: Allow two plugins to use piklist_empty_post_title filter #5615
ccjeagleMember@Steve-
The ‘default’ domain works well because ‘Auto Draft’ seems to be a standard wording in default language file.
if (($data['post_status'] != 'auto-draft') && (($data['post_title'] == __('Auto Draft')) || empty($data['post_title'])))Thanks for your prompt help!
January 14, 2016 at 10:31 am in reply to: Allow two plugins to use piklist_empty_post_title filter #5595
ccjeagleMemberOh by the way, it looks this hook ‘piklist_empty_post_title’ does not work under other languages. Maybe the word ‘Auto Draft’ has been translated so it won’t trigger?
Thanks.
January 11, 2016 at 7:35 am in reply to: CPT on_post_status failed switching when required=true : 0.9.9.7 #5551
ccjeagleMember@Steve- Thanks much for checking!
-
AuthorPosts
Viewing 5 posts - 1 through 5 (of 5 total)