Inventory_Presser_Plugin::maybe_force_delete( int $post_id )
Action hook callback. Prevents vehicles from lingering in the Trash after they’ve been deleted if a plugin setting dictates such behavior.
Contents
Parameters Parameters
- $post_id
-
(int) (Required)
Return Return
(void)
Source Source
File: inventory-presser.php
} /** * Action hook callback. Prevents vehicles from lingering in the Trash after * they've been deleted if a plugin setting dictates such behavior. * * @param int $post_id * @return void */ public function maybe_force_delete( $post_id ) { // is the post a vehicle? if ( INVP::POST_TYPE !== get_post_type( $post_id ) ) { return; }
Expand full source code Collapse full source code View on Github