PHP Class Inpsyde\MultilingualPress\Module\Trasher\Trasher

Since: 3.0.0
Mostrar archivo Open project: inpsyde/multilingual-press

Public Methods

Method Description
__construct ( Inpsyde\MultilingualPress\Module\Trasher\TrasherSettingRepository $setting_repository, Inpsyde\MultilingualPress\API\ContentRelations $content_relations ) Constructor. Sets up the properties.
trash_related_posts ( integer $post_id ) : integer Trashes all related posts.

Method Details

__construct() public method

Constructor. Sets up the properties.
Since: 3.0.0
public __construct ( Inpsyde\MultilingualPress\Module\Trasher\TrasherSettingRepository $setting_repository, Inpsyde\MultilingualPress\API\ContentRelations $content_relations )
$setting_repository Inpsyde\MultilingualPress\Module\Trasher\TrasherSettingRepository Trasher setting repository object.
$content_relations Inpsyde\MultilingualPress\API\ContentRelations Content relations API object.