WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #46187, comment 7


Ignore:
Timestamp:
11/24/2020 05:16:09 AM (5 months ago)
Author:
manzoorwani.jk
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #46187, comment 7

    initial v1  
    1 Well, both of those arguments are not valid.
     1Well, none of those arguments is valid.
    22
    33You need to follow the coding standards in the code you write and you are not responsible for the dynamic part of the filter. An example of that is `save_post_{$post->post_type}`, where `post_type` can have some characters like `-` which apparently are not as per the coding standards for filter names, although there is nothing mentioned about filter names in WPCS. Another example is `admin_post_{$action}`, where I can write anything as `$action`, including `/`.