Make WordPress Core

Changes between Version 5 and Version 6 of Ticket #41235, comment 5


Ignore:
Timestamp:
07/10/2017 06:17:54 AM (7 years ago)
Author:
aussieguy123
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #41235, comment 5

    v5 v6  
    1 @DrewAPicture the idea of the action is to avoid the need for the if statement (or other logic)
     1@DrewAPicture the idea of the action is to avoid the need for the if statement (or other logic) whenever you want something to run on a specific admin screen.
    22
    33This is similar to how alot of MVW style frameworks work,  instead of using an if statement to detect a page they would use something else (like a route or action) to hook into the page directly.