views
2 months ago
AdminMenu.php
3 weeks ago
EditWithButton.php
3 weeks ago
PostActions.php
2 months ago
PostActions.php
31 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Post Actions triggers |
| 4 | * |
| 5 | * @package kirki |
| 6 | */ |
| 7 | |
| 8 | namespace Kirki\Admin; |
| 9 | |
| 10 | if ( ! defined( 'ABSPATH' ) ) { |
| 11 | exit; // Exit if accessed directly. |
| 12 | } |
| 13 | use Kirki\HelperFunctions; |
| 14 | |
| 15 | |
| 16 | /** |
| 17 | * PostActions Class |
| 18 | */ |
| 19 | class PostActions { |
| 20 | |
| 21 | |
| 22 | /** |
| 23 | * Initilize the class |
| 24 | * |
| 25 | * @return void |
| 26 | */ |
| 27 | public function __construct() { |
| 28 | add_action( 'deleted_post', array( new HelperFunctions(), 'delete_post_with_meta_key' ) ); |
| 29 | } |
| 30 | } |
| 31 |