accelerated-mobile-pages icon indicating copy to clipboard operation
accelerated-mobile-pages copied to clipboard

Hide AMP Bulk tools for Custom Post Types

Open mdkaleem95 opened this issue 6 years ago • 8 comments

Need to create a custom post type option in Individual AMP Page (Bulk Edit). so a user can hide or show the custom post type.

For more details please visit the help scout link:

Ref: https://secure.helpscout.net/conversation/628376164/30967?folderId=1914712

mdkaleem95 avatar Aug 06 '18 08:08 mdkaleem95

Can we use has_category in this as well and optimize the code?

MohammedKaludi avatar Sep 22 '18 11:09 MohammedKaludi

https://github.com/ahmedkaludi/accelerated-mobile-pages/commit/90c9dde0187decdd6e2d0371e82e912be8ad60ec#diff-6aa5512f7dd8d5ce60fc97b0f340912cR2905 here need page ID but passed wrong id (recent post id from global value)

https://github.com/ahmedkaludi/accelerated-mobile-pages/commit/90c9dde0187decdd6e2d0371e82e912be8ad60ec#diff-6aa5512f7dd8d5ce60fc97b0f340912cR2907 why get_the_ID() used if we need to update on all pages

https://github.com/ahmedkaludi/accelerated-mobile-pages/commit/90c9dde0187decdd6e2d0371e82e912be8ad60ec#diff-6aa5512f7dd8d5ce60fc97b0f340912cR2912 here $post->post_type why taken from global $post, we are already getting current post_type from loop

ajeetku avatar Mar 05 '19 07:03 ajeetku

** Review **

  • [x] Kaleem

  • [x] Imran

pegazee avatar Apr 10 '19 05:04 pegazee

Labeling improvements required. https://take.ms/Pmpuz

Use the same method mentioned in #2301

Also consult with me once as you start the work on it

MohammedKaludi avatar Oct 12 '19 10:10 MohammedKaludi

Escaping required and Some Types are not visible https://take.ms/SmhA9

MohammedKaludi avatar Oct 16 '19 11:10 MohammedKaludi

esc_attr should be used instead of esc_html

https://github.com/ahmedkaludi/accelerated-mobile-pages/commit/0fd9dec02ea7418ecd0ea5870d7d4c14ba3f951e#diff-6aa5512f7dd8d5ce60fc97b0f340912cR3259

MohammedKaludi avatar Oct 17 '19 08:10 MohammedKaludi

esc_attr should be used instead of esc_html

Still missing on other places.

MohammedKaludi avatar Oct 17 '19 11:10 MohammedKaludi

Ready to merge, need to update the label and make sure the Defaults are changing for post type after the merge.

MohammedKaludi avatar Oct 17 '19 14:10 MohammedKaludi