WordPress:ゴミ箱の記事を保存するコード
UPDATE 2024.03.27function.phpへ記述
function disable_scheduled_delete() {
remove_action( 'wp_scheduled_delete', 'wp_scheduled_delete' );
}
add_action( 'init', 'disable_scheduled_delete' );
function.phpへ記述
function disable_scheduled_delete() {
remove_action( 'wp_scheduled_delete', 'wp_scheduled_delete' );
}
add_action( 'init', 'disable_scheduled_delete' );