Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/wp-conte.../plugins/wp-bulk-.../includes
File: delele-posts-form-functions.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* Form Process
[2] Fix | Delete
*
[3] Fix | Delete
* @package WP_Bulk_Delete
[4] Fix | Delete
* @subpackage Form Process
[5] Fix | Delete
* @copyright Copyright (c) 2016, Dharmesh Patel
[6] Fix | Delete
* @since 1.0
[7] Fix | Delete
*/
[8] Fix | Delete
[9] Fix | Delete
// Exit if accessed directly
[10] Fix | Delete
if ( ! defined( 'ABSPATH' ) ) exit;
[11] Fix | Delete
[12] Fix | Delete
/** Actions *************************************************************/
[13] Fix | Delete
// By Posttype
[14] Fix | Delete
add_action( 'render_form_by_posttype', 'wpbd_render_form_posttype', 10 );
[15] Fix | Delete
add_action( 'render_form_by_posttype', 'wpbd_render_common_form', 20 );
[16] Fix | Delete
[17] Fix | Delete
// By Author
[18] Fix | Delete
add_action( 'render_form_by_author', 'wpbd_render_form_posttype', 10 );
[19] Fix | Delete
add_action( 'render_form_by_author', 'wpbd_render_form_users', 20 );
[20] Fix | Delete
add_action( 'render_form_by_author', 'wpbd_render_common_form', 30 );
[21] Fix | Delete
[22] Fix | Delete
// By Title & Content
[23] Fix | Delete
add_action( 'render_form_by_title', 'wpbd_render_form_posttype', 10 );
[24] Fix | Delete
add_action( 'render_form_by_title', 'wpbd_render_form_post_contains', 20 );
[25] Fix | Delete
add_action( 'render_form_by_title', 'wpbd_render_common_form', 30 );
[26] Fix | Delete
[27] Fix | Delete
// By Taxonomy.
[28] Fix | Delete
add_action( 'render_form_by_taxonomy', 'wpbd_render_form_posttype_dropdown', 10 );
[29] Fix | Delete
add_action( 'render_form_by_taxonomy', 'wpbd_render_form_taxonomy', 20 );
[30] Fix | Delete
add_action( 'render_form_by_taxonomy', 'wpbd_render_extra_assinged_category', 30 );
[31] Fix | Delete
add_action( 'render_form_by_taxonomy', 'wpbd_render_common_form', 40 );
[32] Fix | Delete
[33] Fix | Delete
// By Custom Fields
[34] Fix | Delete
add_action( 'render_form_by_custom_fields', 'wpbd_render_form_posttype', 10 );
[35] Fix | Delete
add_action( 'render_form_by_custom_fields', 'wpbd_render_form_custom_fields', 20 );
[36] Fix | Delete
add_action( 'render_form_by_custom_fields', 'wpbd_render_common_form', 30 );
[37] Fix | Delete
[38] Fix | Delete
// General
[39] Fix | Delete
add_action( 'render_form_general', 'wpbd_render_form_posttype_dropdown', 10 );
[40] Fix | Delete
add_action( 'render_form_general', 'wpbd_render_form_taxonomy', 20 );
[41] Fix | Delete
add_action( 'render_form_general', 'wpbd_render_extra_assinged_category', 20 );
[42] Fix | Delete
add_action( 'render_form_general', 'wpbd_render_form_users', 30 );
[43] Fix | Delete
add_action( 'render_form_general', 'wpbd_render_form_custom_fields', 40 );
[44] Fix | Delete
add_action( 'render_form_general', 'wpbd_render_form_post_contains', 50 );
[45] Fix | Delete
add_action( 'render_form_general', 'wpbd_render_common_form', 60 );
[46] Fix | Delete
add_action( 'render_form_by_charector_count', 'wpdb_render_delete_users_postlinks', 10 );
[47] Fix | Delete
add_action( 'render_form_by_charector_count', 'wpbd_render_form_post_contant_count_interval', 70 );
[48] Fix | Delete
[49] Fix | Delete
/**
[50] Fix | Delete
* Process Delete posts form
[51] Fix | Delete
*
[52] Fix | Delete
*
[53] Fix | Delete
* @since 1.0
[54] Fix | Delete
* @param array $data Form pot Data.
[55] Fix | Delete
* @return array | posts ID to be delete.
[56] Fix | Delete
*/
[57] Fix | Delete
function xt_delete_posts_form_process( $data ) {
[58] Fix | Delete
$error = array();
[59] Fix | Delete
[60] Fix | Delete
if ( ! current_user_can( 'manage_options' ) ) {
[61] Fix | Delete
$error[] = esc_html__('You don\'t have enough permission for this operation.', 'wp-bulk-delete' );
[62] Fix | Delete
}
[63] Fix | Delete
[64] Fix | Delete
if ( isset( $data['_delete_all_posts_wpnonce'] ) && wp_verify_nonce( $data['_delete_all_posts_wpnonce'], 'delete_posts_nonce' ) ) {
[65] Fix | Delete
[66] Fix | Delete
if( empty( $error ) ) {
[67] Fix | Delete
$delete_time = ( $data['delete_time'] ) ? $data['delete_time'] : 'now';
[68] Fix | Delete
$delete_datetime = isset( $data['delete_datetime'] ) ? $data['delete_datetime'] : '';
[69] Fix | Delete
$custom_query = !empty( $data['with_custom_query'] ) ? $data['with_custom_query'] : '';
[70] Fix | Delete
if( $delete_time === 'scheduled' && !empty($delete_datetime) && wpbd_is_pro() ) {
[71] Fix | Delete
$data['delete_entity'] = 'post';
[72] Fix | Delete
return wpbd_save_scheduled_delete($data);
[73] Fix | Delete
}
[74] Fix | Delete
[75] Fix | Delete
// Get post_ids for delete based on user input.
[76] Fix | Delete
$post_ids = wpbulkdelete()->api->get_delete_posts_ids( $data );
[77] Fix | Delete
if ( ! empty( $post_ids ) && count( $post_ids ) > 0 ) {
[78] Fix | Delete
$force_delete = false;
[79] Fix | Delete
if ( $data['delete_type'] === 'permenant' ) {
[80] Fix | Delete
$force_delete = true;
[81] Fix | Delete
}
[82] Fix | Delete
$post_count = wpbulkdelete()->api->do_delete_posts( $post_ids, $force_delete, $data, $custom_query );
[83] Fix | Delete
return array(
[84] Fix | Delete
'status' => 1,
[85] Fix | Delete
'messages' => array( sprintf( esc_html__( '%d Record deleted successfully.', 'wp-bulk-delete' ), $post_count)
[86] Fix | Delete
) );
[87] Fix | Delete
} else {
[88] Fix | Delete
return array(
[89] Fix | Delete
'status' => 1,
[90] Fix | Delete
'messages' => array( esc_html__( 'Nothing to delete!!', 'wp-bulk-delete' ) ),
[91] Fix | Delete
);
[92] Fix | Delete
}
[93] Fix | Delete
[94] Fix | Delete
} else {
[95] Fix | Delete
return array(
[96] Fix | Delete
'status' => 0,
[97] Fix | Delete
'messages' => $error,
[98] Fix | Delete
);
[99] Fix | Delete
}
[100] Fix | Delete
[101] Fix | Delete
} else {
[102] Fix | Delete
wp_die( esc_html__( 'Sorry, Your nonce did not verify.', 'wp-bulk-delete' ) );
[103] Fix | Delete
}
[104] Fix | Delete
}
[105] Fix | Delete
[106] Fix | Delete
/**
[107] Fix | Delete
* Render Posttype checkboxes.
[108] Fix | Delete
*
[109] Fix | Delete
* @since 1.0
[110] Fix | Delete
* @return void
[111] Fix | Delete
*/
[112] Fix | Delete
function wpbd_render_form_posttype(){
[113] Fix | Delete
global $wp_post_types;
[114] Fix | Delete
$ingnore_types = array( 'attachment','revision','nav_menu_item','custom_css', 'customize_changeset', 'oembed_cache', 'user_request', 'wp_block', 'wp_template', 'wp_template_part', 'wp_global_styles', 'wp_navigation' );
[115] Fix | Delete
$types = array();
[116] Fix | Delete
if( !empty( $wp_post_types ) ){
[117] Fix | Delete
foreach( $wp_post_types as $key_type => $post_type ){
[118] Fix | Delete
if( in_array( $key_type, $ingnore_types ) ){
[119] Fix | Delete
continue;
[120] Fix | Delete
}else{
[121] Fix | Delete
$types[$key_type] = $post_type->labels->name;
[122] Fix | Delete
}
[123] Fix | Delete
}
[124] Fix | Delete
}
[125] Fix | Delete
?>
[126] Fix | Delete
<tr>
[127] Fix | Delete
<th scope="row">
[128] Fix | Delete
<?php _e('Post type of items to delete:','wp-bulk-delete'); ?>
[129] Fix | Delete
</th>
[130] Fix | Delete
<td>
[131] Fix | Delete
<?php
[132] Fix | Delete
if( !empty( $types ) ){
[133] Fix | Delete
foreach( $types as $key_type => $type ){
[134] Fix | Delete
$disable = '';
[135] Fix | Delete
if( ( $type === "Orders" || $type == "Coupons" || $type == "Refunds" ) && !wpbd_is_pro() ){
[136] Fix | Delete
$disable = "disabled";
[137] Fix | Delete
}
[138] Fix | Delete
?>
[139] Fix | Delete
<fieldset>
[140] Fix | Delete
<label for="delete_post_type">
[141] Fix | Delete
<input name="delete_post_type[]" class="delete_post_type" id="<?php echo $key_type; ?>" type="checkbox" value="<?php echo $key_type; ?>" <?php echo $disable; ?> >
[142] Fix | Delete
<?php printf( __( '%s', 'wp-bulk-delete' ), $type ); ?>
[143] Fix | Delete
<?php $post_count = wpbd_get_posttype_post_count( $key_type );
[144] Fix | Delete
if( $post_count >= 0 ){
[145] Fix | Delete
echo '('.$post_count .' '. $type .')';
[146] Fix | Delete
}
[147] Fix | Delete
if( $disable == "disabled" ){
[148] Fix | Delete
do_action( 'wpbd_display_available_in_pro');
[149] Fix | Delete
}
[150] Fix | Delete
?>
[151] Fix | Delete
</label>
[152] Fix | Delete
</fieldset>
[153] Fix | Delete
<?php
[154] Fix | Delete
}
[155] Fix | Delete
}else{
[156] Fix | Delete
_e('No post types are there, WP Bulk Delete will not work.','wp-bulk-delete');
[157] Fix | Delete
}
[158] Fix | Delete
?>
[159] Fix | Delete
</td>
[160] Fix | Delete
</tr>
[161] Fix | Delete
<?php
[162] Fix | Delete
}
[163] Fix | Delete
[164] Fix | Delete
/**
[165] Fix | Delete
* Render Post type Dropdown.
[166] Fix | Delete
*
[167] Fix | Delete
* @since 1.0
[168] Fix | Delete
* @return void
[169] Fix | Delete
*/
[170] Fix | Delete
function wpbd_render_form_posttype_dropdown(){
[171] Fix | Delete
global $wp_post_types;
[172] Fix | Delete
$ingnore_types = array( 'attachment','revision','nav_menu_item','custom_css', 'customize_changeset', 'oembed_cache', 'user_request', 'wp_block', 'wp_template', 'wp_template_part', 'wp_global_styles', 'wp_navigation' );
[173] Fix | Delete
$types = array();
[174] Fix | Delete
if( !empty( $wp_post_types ) ){
[175] Fix | Delete
foreach( $wp_post_types as $key_type => $post_type ){
[176] Fix | Delete
if( in_array( $key_type, $ingnore_types ) ){
[177] Fix | Delete
continue;
[178] Fix | Delete
}else{
[179] Fix | Delete
$types[$key_type] = $post_type->labels->name;
[180] Fix | Delete
}
[181] Fix | Delete
}
[182] Fix | Delete
}
[183] Fix | Delete
?>
[184] Fix | Delete
<tr>
[185] Fix | Delete
<th scope="row">
[186] Fix | Delete
<?php _e('Post type of items to delete:','wp-bulk-delete'); ?>
[187] Fix | Delete
</th>
[188] Fix | Delete
<td>
[189] Fix | Delete
<select name="delete_post_type" class="delete_post_type" id="delete_post_type" required="required">
[190] Fix | Delete
<?php
[191] Fix | Delete
if( !empty( $types ) ){
[192] Fix | Delete
foreach( $types as $key_type => $type ){
[193] Fix | Delete
?>
[194] Fix | Delete
<fieldset>
[195] Fix | Delete
<label for="delete_post_type">
[196] Fix | Delete
<option value="<?php echo $key_type; ?>">
[197] Fix | Delete
<?php printf( __( '%s', 'wp-bulk-delete' ), $type ); ?>
[198] Fix | Delete
</option>
[199] Fix | Delete
</label>
[200] Fix | Delete
</fieldset>
[201] Fix | Delete
<?php
[202] Fix | Delete
}
[203] Fix | Delete
}else{
[204] Fix | Delete
_e('No post types are there, WP Bulk Delete will not work.','wp-bulk-delete');
[205] Fix | Delete
}
[206] Fix | Delete
?>
[207] Fix | Delete
</select>
[208] Fix | Delete
</td>
[209] Fix | Delete
</tr>
[210] Fix | Delete
<?php
[211] Fix | Delete
}
[212] Fix | Delete
[213] Fix | Delete
/**
[214] Fix | Delete
* Render taxonomies.
[215] Fix | Delete
*
[216] Fix | Delete
* @since 1.0
[217] Fix | Delete
* @return void
[218] Fix | Delete
*/
[219] Fix | Delete
function wpbd_render_form_taxonomy(){
[220] Fix | Delete
?>
[221] Fix | Delete
<tr>
[222] Fix | Delete
<th scope="row">
[223] Fix | Delete
<?php _e('Post Taxonomy:','wp-bulk-delete'); ?>
[224] Fix | Delete
</th>
[225] Fix | Delete
<td>
[226] Fix | Delete
<div class="post_taxonomy">
[227] Fix | Delete
</div>
[228] Fix | Delete
</td>
[229] Fix | Delete
</tr>
[230] Fix | Delete
<tr>
[231] Fix | Delete
<th scope="row" class="taxo_terms_title">
[232] Fix | Delete
[233] Fix | Delete
<?php //_e('Post Taxonomy :','wp-bulk-delete'); ?>
[234] Fix | Delete
</th>
[235] Fix | Delete
<td>
[236] Fix | Delete
<div class="post_taxo_terms">
[237] Fix | Delete
</div>
[238] Fix | Delete
</td>
[239] Fix | Delete
</tr>
[240] Fix | Delete
<script>
[241] Fix | Delete
jQuery(document).ready(function(){
[242] Fix | Delete
jQuery('#delete_post_type').trigger( 'change' );
[243] Fix | Delete
});
[244] Fix | Delete
</script>
[245] Fix | Delete
<?php
[246] Fix | Delete
}
[247] Fix | Delete
[248] Fix | Delete
/**
[249] Fix | Delete
* Render Post Statuses.
[250] Fix | Delete
*
[251] Fix | Delete
* @since 1.0
[252] Fix | Delete
* @return void
[253] Fix | Delete
*/
[254] Fix | Delete
function wpbd_render_extra_assinged_category(){
[255] Fix | Delete
?>
[256] Fix | Delete
<tr>
[257] Fix | Delete
<th scope="row">Delete Post From Selected Category Only:</th>
[258] Fix | Delete
<td>
[259] Fix | Delete
<fieldset>
[260] Fix | Delete
<label for="delete_post_status" >
[261] Fix | Delete
<input name="delete_selected_category" id="delete_selected_category" value="d_s_c" type="checkbox" >
[262] Fix | Delete
Delete Post From Selected Category Only:
[263] Fix | Delete
</label>
[264] Fix | Delete
<p class="description">
[265] Fix | Delete
<?php _e( "You can enable this option to delete posts that have not been assigned any other categories from the selected category.",'wp-bulk-delete' ); ?>
[266] Fix | Delete
</p>
[267] Fix | Delete
</fieldset>
[268] Fix | Delete
</td>
[269] Fix | Delete
</tr>
[270] Fix | Delete
<?php
[271] Fix | Delete
}
[272] Fix | Delete
[273] Fix | Delete
/**
[274] Fix | Delete
* Render Post Statuses.
[275] Fix | Delete
*
[276] Fix | Delete
* @since 1.0
[277] Fix | Delete
* @return void
[278] Fix | Delete
*/
[279] Fix | Delete
function wpbd_render_form_poststatus(){
[280] Fix | Delete
global $wpdb;
[281] Fix | Delete
?>
[282] Fix | Delete
<tr>
[283] Fix | Delete
<th scope="row">Post Status</th>
[284] Fix | Delete
<td>
[285] Fix | Delete
<fieldset>
[286] Fix | Delete
<label for="delete_post_status" >
[287] Fix | Delete
<input name="delete_post_status[]" id="publish" value="publish" type="checkbox" checked="checked" >
[288] Fix | Delete
Published
[289] Fix | Delete
</label>
[290] Fix | Delete
</fieldset>
[291] Fix | Delete
<fieldset>
[292] Fix | Delete
<label for="delete_post_status">
[293] Fix | Delete
<input name="delete_post_status[]" id="future" value="future" type="checkbox">
[294] Fix | Delete
Scheduled
[295] Fix | Delete
</label>
[296] Fix | Delete
</fieldset>
[297] Fix | Delete
<fieldset>
[298] Fix | Delete
<label for="delete_post_status">
[299] Fix | Delete
<input name="delete_post_status[]" id="draft" value="draft" type="checkbox">
[300] Fix | Delete
Draft
[301] Fix | Delete
</label>
[302] Fix | Delete
</fieldset>
[303] Fix | Delete
<fieldset>
[304] Fix | Delete
<label for="delete_post_status">
[305] Fix | Delete
<input name="delete_post_status[]" id="pending" value="pending" type="checkbox">
[306] Fix | Delete
Pending
[307] Fix | Delete
</label>
[308] Fix | Delete
</fieldset>
[309] Fix | Delete
<fieldset>
[310] Fix | Delete
<label for="delete_post_status">
[311] Fix | Delete
<input name="delete_post_status[]" id="private" value="private" type="checkbox">
[312] Fix | Delete
Private
[313] Fix | Delete
</label>
[314] Fix | Delete
</fieldset>
[315] Fix | Delete
<fieldset>
[316] Fix | Delete
<label for="delete_post_status">
[317] Fix | Delete
<input name="delete_post_status[]" id="trash" value="trash" type="checkbox">
[318] Fix | Delete
Trash
[319] Fix | Delete
</label>
[320] Fix | Delete
</fieldset>
[321] Fix | Delete
</td>
[322] Fix | Delete
</tr>
[323] Fix | Delete
<?php
[324] Fix | Delete
if( wpbd_is_pro() && class_exists( 'WP_Bulk_Delete_Pro_Common' ) ){
[325] Fix | Delete
if( $wpdb->common_pro->wpbd_is_woo_active() == true ){
[326] Fix | Delete
$wpdb->common_pro->wpbd_woo_order_detele_by_status();
[327] Fix | Delete
}
[328] Fix | Delete
}
[329] Fix | Delete
}
[330] Fix | Delete
[331] Fix | Delete
/**
[332] Fix | Delete
* Render Post Statuses.
[333] Fix | Delete
*
[334] Fix | Delete
* @since 1.0
[335] Fix | Delete
* @return void
[336] Fix | Delete
*/
[337] Fix | Delete
function wpbd_render_form_custom_query(){
[338] Fix | Delete
?>
[339] Fix | Delete
<tr>
[340] Fix | Delete
<th scope="row">Post Delete from Custom Query:</th>
[341] Fix | Delete
<td>
[342] Fix | Delete
<fieldset>
[343] Fix | Delete
<label for="delete_post_status" >
[344] Fix | Delete
<input name="with_custom_query" id="with_custom_query" value="custom_query" type="checkbox" >
[345] Fix | Delete
With Custom Query
[346] Fix | Delete
</label>
[347] Fix | Delete
<p class="description">
[348] Fix | Delete
<?php _e('You can delete posts from custom queries by enabling this option. This option will work only in the "Delete Permanently" option.','wp-bulk-delete' ); ?>
[349] Fix | Delete
</p>
[350] Fix | Delete
</fieldset>
[351] Fix | Delete
</td>
[352] Fix | Delete
</tr>
[353] Fix | Delete
<?php
[354] Fix | Delete
}
[355] Fix | Delete
[356] Fix | Delete
[357] Fix | Delete
/**
[358] Fix | Delete
* Render Date intervals.
[359] Fix | Delete
*
[360] Fix | Delete
* @since 1.0
[361] Fix | Delete
* @return void
[362] Fix | Delete
*/
[363] Fix | Delete
function wpbd_render_form_date_interval(){
[364] Fix | Delete
?>
[365] Fix | Delete
<tr>
[366] Fix | Delete
<th scope="row">
[367] Fix | Delete
<?php _e('Post Date :','wp-bulk-delete'); ?>
[368] Fix | Delete
</th>
[369] Fix | Delete
<td>
[370] Fix | Delete
<?php _e('Delete Posts which are','wp-bulk-delete'); ?>
[371] Fix | Delete
<select name="date_type" class="date_type">
[372] Fix | Delete
<option value="older_than"><?php _e('older than','wp-bulk-delete'); ?></option>
[373] Fix | Delete
<option value="within_last"><?php _e('posted within last','wp-bulk-delete'); ?></option>
[374] Fix | Delete
<?php if( wpbd_is_pro() ) { ?>
[375] Fix | Delete
<option value="onemonth"><?php _e('1 Month','wp-bulk-delete'); ?></option>
[376] Fix | Delete
<option value="sixmonths"><?php _e('6 Months','wp-bulk-delete'); ?></option>
[377] Fix | Delete
<option value="oneyear"><?php _e('1 Year','wp-bulk-delete'); ?></option>
[378] Fix | Delete
<option value="twoyear"><?php _e('2 Years','wp-bulk-delete'); ?></option>
[379] Fix | Delete
<?php } ?>
[380] Fix | Delete
<option value="custom_date"><?php _e('posted between custom','wp-bulk-delete'); ?></option>
[381] Fix | Delete
</select>
[382] Fix | Delete
<div class="wpbd_date_days wpbd_inline">
[383] Fix | Delete
<input type="number" id="input_days" name="input_days" class="wpbd_input_days" placeholder="0" min="0" /> <?php _e('days','wp-bulk-delete'); ?>
[384] Fix | Delete
</div>
[385] Fix | Delete
<div class="wpbd_custom_interval wpbd_inline" style="display:none;">
[386] Fix | Delete
<input type="text" id="delete_start_date" name="delete_start_date" class="delete_all_datepicker" placeholder="<?php _e('Start Date','wp-bulk-delete'); ?>" />
[387] Fix | Delete
-
[388] Fix | Delete
<input type="text" id="delete_end_date" name="delete_end_date" class="delete_all_datepicker" placeholder="<?php _e('End Date','wp-bulk-delete'); ?>" />
[389] Fix | Delete
<p class="description">
[390] Fix | Delete
<?php _e('Set the date interval for items to delete, or leave these fields blank to select all posts. The dates must be specified in the following format: <strong>YYYY-MM-DD</strong>','wp-bulk-delete'); ?>
[391] Fix | Delete
</p>
[392] Fix | Delete
</div>
[393] Fix | Delete
<div class="wpbd_date_range wpbd_inline" style="display:none;">
[394] Fix | Delete
<p class="description">
[395] Fix | Delete
<?php _e('This option will work well with Scheduled Delete, which will help to delete posts of the selected option from the scheduled run date.','wp-bulk-delete'); ?>
[396] Fix | Delete
</p>
[397] Fix | Delete
</div>
[398] Fix | Delete
</td>
[399] Fix | Delete
</tr>
[400] Fix | Delete
<?php
[401] Fix | Delete
}
[402] Fix | Delete
[403] Fix | Delete
/**
[404] Fix | Delete
* Render Modified intervals.
[405] Fix | Delete
*
[406] Fix | Delete
* @since 1.0
[407] Fix | Delete
* @return void
[408] Fix | Delete
*/
[409] Fix | Delete
function wpbd_render_form_modified_interval(){
[410] Fix | Delete
?>
[411] Fix | Delete
<tr>
[412] Fix | Delete
<th scope="row">
[413] Fix | Delete
<?php _e('Post Modified:','wp-bulk-delete'); ?>
[414] Fix | Delete
</th>
[415] Fix | Delete
<td>
[416] Fix | Delete
<?php _e('Delete Posts which are','wp-bulk-delete'); ?>
[417] Fix | Delete
<select name="mdate_type" class="mdate_type">
[418] Fix | Delete
<option value="molder_than"><?php _e('older than','wp-bulk-delete'); ?></option>
[419] Fix | Delete
<option value="mwithin_last"><?php _e('posted within last','wp-bulk-delete'); ?></option>
[420] Fix | Delete
<option value="mcustom_date"><?php _e('posted between','wp-bulk-delete'); ?></option>
[421] Fix | Delete
</select>
[422] Fix | Delete
<div class="mwpbd_date_days wpbd_inline">
[423] Fix | Delete
<input type="number" id="minput_days" name="minput_days" class="wpbd_input_days" placeholder="0" min="0" /> <?php _e('days','wp-bulk-delete'); ?>
[424] Fix | Delete
</div>
[425] Fix | Delete
<div class="mwpbd_custom_interval wpbd_inline" style="display:none;">
[426] Fix | Delete
<input type="text" id="mdelete_start_date" name="mdelete_start_date" class="delete_all_datepicker" placeholder="<?php _e('Start Date','wp-bulk-delete'); ?>" />
[427] Fix | Delete
-
[428] Fix | Delete
<input type="text" id="mdelete_end_date" name="mdelete_end_date" class="delete_all_datepicker" placeholder="<?php _e('End Date','wp-bulk-delete'); ?>" />
[429] Fix | Delete
<p class="description">
[430] Fix | Delete
<?php _e('Set the modified date interval for items to delete, or leave these fields blank to select all posts. The dates must be specified in the following format: <strong>YYYY-MM-DD</strong>','wp-bulk-delete'); ?>
[431] Fix | Delete
</p>
[432] Fix | Delete
</div>
[433] Fix | Delete
</td>
[434] Fix | Delete
</tr>
[435] Fix | Delete
<?php
[436] Fix | Delete
}
[437] Fix | Delete
[438] Fix | Delete
/**
[439] Fix | Delete
* Render Post Contant Count.
[440] Fix | Delete
*
[441] Fix | Delete
* @since 1.2.6
[442] Fix | Delete
* @return void
[443] Fix | Delete
*/
[444] Fix | Delete
function wpbd_render_form_post_contant_count_interval(){
[445] Fix | Delete
?>
[446] Fix | Delete
<tr>
[447] Fix | Delete
<th scope="row">
[448] Fix | Delete
<?php _e('Post Content Count:','wp-bulk-delete'); ?>
[449] Fix | Delete
</th>
[450] Fix | Delete
<td>
[451] Fix | Delete
<?php _e('Delete Post with Content Count Limit','wp-bulk-delete'); ?>
[452] Fix | Delete
<select name="disabled_sample8" disabled="disabled" >
[453] Fix | Delete
<option value="lessthen"><?php _e( 'Less Than.', 'wp-bulk-delete' ); ?> </option>
[454] Fix | Delete
<option value="greaterthen"><?php _e( "Greater Then.", "wp-bulk-delete" ); ?> </option>
[455] Fix | Delete
</select>
[456] Fix | Delete
<div class="mwpbd_date_days wpbd_inline">
[457] Fix | Delete
<input type="number" id="disabled_sample9" disabled="disabled" name="disabled_sample9" class="limit_post_input" placeholder="0" min="0" /> <?php _e('Character Limit','wp-bulk-delete'); ?>
[458] Fix | Delete
</div>
[459] Fix | Delete
<?php do_action( 'wpbd_display_available_in_pro'); ?>
[460] Fix | Delete
</td>
[461] Fix | Delete
</tr>
[462] Fix | Delete
<?php
[463] Fix | Delete
}
[464] Fix | Delete
[465] Fix | Delete
/**
[466] Fix | Delete
* Render Post title and content contains.
[467] Fix | Delete
*
[468] Fix | Delete
* @since 1.0
[469] Fix | Delete
* @return void
[470] Fix | Delete
*/
[471] Fix | Delete
function wpbd_render_form_post_contains(){
[472] Fix | Delete
?>
[473] Fix | Delete
<tr>
[474] Fix | Delete
<th scope="row">
[475] Fix | Delete
<?php _e('If Post Title Contains:','wp-bulk-delete'); ?>
[476] Fix | Delete
</th>
[477] Fix | Delete
<td>
[478] Fix | Delete
<input type="text" id="disabled_sample4" name="disabled_sample4" class="disabled_sample4" disabled="disabled" />
[479] Fix | Delete
<?php _e( 'Then', 'wp-bulk-delete' ); ?>
[480] Fix | Delete
<select name="disabled_sample5" disabled="disabled">
[481] Fix | Delete
<option value=""><?php _e( 'Delete It.', 'wp-bulk-delete' ); ?> </option>
[482] Fix | Delete
<option value=""><?php _e( "Don't delete It.", "wp-bulk-delete" ); ?> </option>
[483] Fix | Delete
</select>
[484] Fix | Delete
<br/>
[485] Fix | Delete
<?php do_action( 'wpbd_display_available_in_pro'); ?>
[486] Fix | Delete
</td>
[487] Fix | Delete
</tr>
[488] Fix | Delete
<tr>
[489] Fix | Delete
<th scope="row">
[490] Fix | Delete
<?php _e('If Post Content Contains:','wp-bulk-delete'); ?>
[491] Fix | Delete
</th>
[492] Fix | Delete
<td>
[493] Fix | Delete
<input type="text" id="disabled_sample6" name="disabled_sample6" class="disabled_sample6" disabled="disabled" />
[494] Fix | Delete
<?php _e( 'Then', 'wp-bulk-delete' ); ?>
[495] Fix | Delete
<select name="disabled_sample7" disabled="disabled">
[496] Fix | Delete
<option value=""><?php _e( 'Delete It.', 'wp-bulk-delete' ); ?> </option>
[497] Fix | Delete
<option value=""><?php _e( "Don't delete It.", "wp-bulk-delete" ); ?> </option>
[498] Fix | Delete
</select>
[499] Fix | Delete
12
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function