bd_delete_options
bd_delete_options
Appears in: bulk-delete.5.6.1, bulk-delete.6.0.0, bulk-delete.6.0.1, bulk-delete.6.0.2, bulk-delete.6.11
Hook Type: filter
See hook in action
Displaying hooks found in version: bulk-delete.6.11apply_filters('bd_delete_options') is found 8 times:
- /include/Core/Base/BaseModule.php line 312
* * @param array $options Delete options. * @param \BulkWP\BulkDelete\Core\Base\BaseModule Modules that is triggering deletion. */ $options = apply_filters( 'bd_delete_options', $options, $this ); return $this->do_delete( $options ); } /** * Get Success Message.
- /include/Core/Posts/Modules/DeletePostsByPostTypeModule.php line 84
* * @param array $options Delete options. * @param \BulkWP\BulkDelete\Core\Base\BaseModule Modules that is triggering deletion. */ $options = apply_filters( 'bd_delete_options', $options, $this ); $posts_deleted = 0; $selected_types = $options['selected_types']; foreach ( $selected_types as $selected_type ) { $query = $this->build_query( $selected_type ); - /include/pages/class-bulk-delete-pages.php line 152
if ( array_key_exists( 'page_op', $delete_options ) ) { $delete_options['date_op'] = $delete_options['page_op']; $delete_options['days'] = $delete_options['page_days']; } $delete_options = apply_filters( 'bd_delete_options', $delete_options ); $post_status = array(); // published pages if ( 'published_pages' == $delete_options['publish'] ) { $post_status[] = 'publish'; - /include/posts/class-bulk-delete-posts.php line 139
* @return int $posts_deleted Number of posts that were deleted */ public static function delete_posts_by_status( $delete_options ) { $delete_options = bd_convert_old_options_for_delete_post_by_status( $delete_options ); $delete_options = apply_filters( 'bd_delete_options', $delete_options ); $posts_deleted = 0; if ( $delete_options['delete-sticky-posts'] ) { $posts_deleted += self::delete_sticky_posts( $delete_options['force_delete'] ); } - /include/posts/class-bulk-delete-posts.php line 302
$delete_options['date_op'] = $delete_options['cats_op']; $delete_options['days'] = $delete_options['cats_days']; } $delete_options = apply_filters( 'bd_delete_options', $delete_options ); $options = array(); $selected_cats = $delete_options['selected_cats']; if ( in_array( 'all', $selected_cats ) ) { $options['category__not__in'] = array(0); } else { - /include/posts/class-bulk-delete-posts.php line 434
$delete_options['date_op'] = $delete_options['tags_op']; $delete_options['days'] = $delete_options['tags_days']; } $delete_options = apply_filters( 'bd_delete_options', $delete_options ); $options = array(); $selected_tags = $delete_options['selected_tags']; if ( in_array( 'all', $selected_tags ) ) { $options['tag__not__in'] = array(0); } else { - /include/posts/class-bulk-delete-posts.php line 614
$delete_options['date_op'] = $delete_options['taxs_op']; $delete_options['days'] = $delete_options['taxs_days']; } $delete_options = apply_filters( 'bd_delete_options', $delete_options ); $selected_taxs = $delete_options['selected_taxs']; $selected_tax_terms = $delete_options['selected_tax_terms']; $options = array( 'post_status' => 'publish',
- /include/posts/class-bulk-delete-posts.php line 782
$delete_options['date_op'] = $delete_options['types_op']; $delete_options['days'] = $delete_options['types_days']; } $delete_options = apply_filters( 'bd_delete_options', $delete_options ); $count = 0; $selected_types = $delete_options['selected_types']; foreach ( $selected_types as $selected_type ) { $type_status = BD_Util::split_post_type_status( $selected_type );