PHP Class Mlp_Nav_Menu_Item_Deletor

Mostrar archivo Open project: inpsyde/multilingual-press

Public Methods

Method Description
__construct ( wpdb $wpdb, string $meta_key ) Constructor. Sets up the properties.
delete_items_for_deleted_site ( integer $deleted_site_id ) : void Deletes all remote MultilingualPress nav menu items linking to the (to-be-deleted) site with the given ID.

Method Details

__construct() public method

Constructor. Sets up the properties.
public __construct ( wpdb $wpdb, string $meta_key )
$wpdb wpdb WordPress database wrapper object.
$meta_key string Site ID meta key for nav_menu posts.

delete_items_for_deleted_site() public method

Deletes all remote MultilingualPress nav menu items linking to the (to-be-deleted) site with the given ID.
public delete_items_for_deleted_site ( integer $deleted_site_id ) : void
$deleted_site_id integer The ID of the to-be-deleted site.
return void