-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The following modules are added along with their tests - DeleteTermsByName - DeleteTermsByPostCount Fix #19 Fix #176 Fix #177 Fix #178 Fix #348 Fix #349
- Loading branch information
1 parent
0057f42
commit 382cbc6
Showing
12 changed files
with
1,485 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/** | ||
* Delete Terms modules. | ||
*/ | ||
jQuery( document ).ready( function () { | ||
jQuery( '.enhanced-taxonomy-list' ).select2( { | ||
width: '300px' | ||
} ); | ||
} ); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
<?php | ||
|
||
namespace BulkWP\BulkDelete\Core\Terms; | ||
|
||
use BulkWP\BulkDelete\Core\Base\BaseDeletePage; | ||
|
||
defined( 'ABSPATH' ) || exit; // Exit if accessed directly. | ||
|
||
/** | ||
* Bulk Delete Terms Page. | ||
* | ||
* Shows the list of modules that allows you to delete terms. | ||
* | ||
* @since 6.0.0 | ||
*/ | ||
class DeleteTermsPage extends BaseDeletePage { | ||
protected function initialize() { | ||
$this->page_slug = 'bulk-delete-terms'; | ||
$this->item_type = 'terms'; | ||
$this->capability = 'delete_posts'; | ||
|
||
$this->label = array( | ||
'page_title' => __( 'Bulk Delete Taxonomy Terms', 'bulk-delete' ), | ||
'menu_title' => __( 'Bulk Delete Terms', 'bulk-delete' ), | ||
); | ||
|
||
$this->messages = array( | ||
'warning_message' => __( 'WARNING: Once deleted, terms cannot be retrieved back. Use with caution.', 'bulk-delete' ), | ||
); | ||
|
||
$this->show_link_in_plugin_list = true; | ||
} | ||
|
||
/** | ||
* Add Help tabs. | ||
* | ||
* @param array $help_tabs Help tabs. | ||
* | ||
* @return array Modified list of tabs. | ||
*/ | ||
protected function add_help_tab( $help_tabs ) { | ||
$overview_tab = array( | ||
'title' => __( 'Overview', 'bulk-delete' ), | ||
'id' => 'overview_tab', | ||
'content' => '<p>' . __( 'This screen contains different modules that allows you to delete terms from taxonomies', 'bulk-delete' ) . '</p>', | ||
'callback' => false, | ||
); | ||
|
||
$help_tabs['overview_tab'] = $overview_tab; | ||
|
||
return $help_tabs; | ||
} | ||
} |
Oops, something went wrong.