ACIL FM
Dark
Refresh
Current DIR:
/home/mhhtmff/www/site BKP/wp-content/plugins/duplicate-post/src/watchers
/
home
mhhtmff
www
site BKP
wp-content
plugins
duplicate-post
src
watchers
Upload
Zip Selected
Delete Selected
Pilih semua
Nama
Ukuran
Permission
Aksi
bulk-actions-watcher.php
2.51 MB
chmod
View
DL
Edit
Rename
Delete
copied-post-watcher.php
3.17 MB
chmod
View
DL
Edit
Rename
Delete
link-actions-watcher.php
3.44 MB
chmod
View
DL
Edit
Rename
Delete
original-post-watcher.php
2.26 MB
chmod
View
DL
Edit
Rename
Delete
republished-post-watcher.php
2.6 MB
chmod
View
DL
Edit
Rename
Delete
watchers.php
1.51 MB
chmod
View
DL
Edit
Rename
Delete
Edit file: /home/mhhtmff/www/site BKP/wp-content/plugins/duplicate-post/src/watchers/bulk-actions-watcher.php
<?php namespace Yoast\WP\Duplicate_Post\Watchers; /** * Duplicate Post class to watch for the bulk actions and show notices. */ class Bulk_Actions_Watcher { /** * Initializes the class. */ public function __construct() { $this->register_hooks(); } /** * Adds hooks to integrate with WordPress. * * @return void */ public function register_hooks() { \add_filter( 'removable_query_args', [ $this, 'add_removable_query_args' ] ); \add_action( 'admin_notices', [ $this, 'add_bulk_clone_admin_notice' ] ); \add_action( 'admin_notices', [ $this, 'add_bulk_rewrite_and_republish_admin_notice' ] ); } /** * Adds vars to the removable query args. * * @param array $removable_query_args Array of query args keys. * * @return array The updated array of query args keys. */ public function add_removable_query_args( $removable_query_args ) { if ( \is_array( $removable_query_args ) ) { $removable_query_args[] = 'bulk_cloned'; $removable_query_args[] = 'bulk_rewriting'; } return $removable_query_args; } /** * Shows a notice after the Clone bulk action has succeeded. * * @return void */ public function add_bulk_clone_admin_notice() { if ( ! empty( $_REQUEST['bulk_cloned'] ) ) { $copied_posts = \intval( $_REQUEST['bulk_cloned'] ); \printf( '<div id="message" class="notice notice-success fade"><p>' . \esc_html( /* translators: %s: Number of posts copied. */ \_n( '%s item copied.', '%s items copied.', $copied_posts, 'duplicate-post' ) ) . '</p></div>', \esc_html( $copied_posts ) ); } } /** * Shows a notice after the Rewrite & Republish bulk action has succeeded. * * @return void */ public function add_bulk_rewrite_and_republish_admin_notice() { if ( ! empty( $_REQUEST['bulk_rewriting'] ) ) { $copied_posts = \intval( $_REQUEST['bulk_rewriting'] ); \printf( '<div id="message" class="notice notice-success fade"><p>' . \esc_html( /* translators: %s: Number of posts copied. */ \_n( '%s post duplicated. You can now start rewriting your post in the duplicate of the original post. Once you choose to republish it your changes will be merged back into the original post.', '%s posts duplicated. You can now start rewriting your posts in the duplicates of the original posts. Once you choose to republish them your changes will be merged back into the original post.', $copied_posts, 'duplicate-post' ) ) . '</p></div>', \esc_html( $copied_posts ) ); } } }
Simpan
Batal
Isi Zip:
Unzip
Create
Buat Folder
Buat File
Terminal / Execute
Run
Chmod Bulk
All File
All Folder
All File dan Folder
Apply