Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

delete post by IDs #65

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 6 additions & 33 deletions assets/css/wp-bulk-delete-admin.css
Original file line number Diff line number Diff line change
Expand Up @@ -1577,39 +1577,6 @@ html:not([data-scroll="0"]) .wpbd-header {
}
/*end new support page*/






























/* Main container for the Chosen dropdown */



/* Selected options */
.chosen-container .chosen-choices {
border-radius: 5px;
Expand Down Expand Up @@ -1639,4 +1606,10 @@ html:not([data-scroll="0"]) .wpbd-header {
display: flex;
flex-direction: row;
align-items: center;
}

.wpbd_posts_id_section{
display: flex;
gap: 10px;
align-items: center;
}
64 changes: 64 additions & 0 deletions includes/delele-posts-form-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -585,6 +585,32 @@ function wpbd_render_form_post_contains(){
<?php
}


/**
* Render Post ID
*
* @since 1.0
* @return void
*/
function wpbd_render_form_post_ids(){
?>
<div class="wpbd-inner-main-section">
<div class="wpbd-inner-section-1" >
<span class="wpbd-title-text" ><?php esc_html_e('Post IDs ','wp-bulk-delete'); ?></span>
</div>
<div class="wpbd-inner-section-2">
<textarea name="" disabled="disabled" id="" cols="70" style="height: 30px;" class="" placeholder="You can add multiple post IDs with comma(,) separator" ></textarea>
<?php esc_html_e( 'Then', 'wp-bulk-delete' ); ?>
<select name="disabled_sample5" disabled="disabled">
<option value=""><?php esc_html_e( 'Delete It.', 'wp-bulk-delete' ); ?> </option>
<option value=""><?php esc_html_e( "Don't delete It.", "wp-bulk-delete" ); ?> </option>
</select>
<br/>
</div>
</div>
<?php
}

/**
* Render Delete type.
*
Expand Down Expand Up @@ -1069,6 +1095,44 @@ function wpbd_render_common_form() {
</div>
</div>

<div class="wpbd-card" >
<div class="header toggles" >
<div class="text" >
<div class="header-icon" ></div>
<div class="header-title" >
<span><?php esc_html_e('Post IDs Filter ','wp-bulk-delete'); if( !wpbd_is_pro() ){ echo '<div class="wpbd-pro-badge"> PRO </div>'; } ?></span>
</div>
<div class="header-extra" ></div>
</div>
<svg viewBox="0 0 24 24" fill="none"
xmlns="http://www.w3.org/2000/svg" class="wpbd-caret">
<path d="M16.59 8.29492L12 12.8749L7.41 8.29492L6 9.70492L12 15.7049L18 9.70492L16.59 8.29492Z" fill="currentColor"></path>
</svg>
</div>
<div class="content" aria-expanded="false" style="display: none;">
<?php
if( !wpbd_is_pro() ){
?>
<div class="wpbd-blur-filter" >
<div class="wpbd-blur" >
<div class="wpbd-blur-filter-option">
<?php
wpbd_render_form_post_ids();
?>
</div>
</div>
<div class="wpbd-blur-filter-cta" >
<span style="color: red"><?php echo esc_html_e( 'Available in Pro version.', 'wp-bulk-delete' ); ?> </span><a href="<?php echo esc_url(WPBD_PLUGIN_BUY_NOW_URL); ?>"><?php echo esc_html_e( 'Buy Now', 'wp-bulk-delete' ); ?></a>
</div>
</div>
<?php
}else{
wpbd_render_form_post_ids_pro();
}
?>
</div>
</div>

<div class="wpbd-card" >
<div class="header toggles" >
<div class="text" >
Expand Down
Loading