feat(admin): tambah redirect aktivasi, tombol setting di about, dan screenshot tema

This commit is contained in:
Mas Budi Kusuma
2026-09-16 10:01:54 +07:00
parent 1ddcc18081
commit 8804243b4f
2 changed files with 11 additions and 0 deletions
+11
View File
@@ -103,3 +103,14 @@ function edukarsa_widgets_init() {
) ); ) );
} }
add_action( 'widgets_init', 'edukarsa_widgets_init' ); add_action( 'widgets_init', 'edukarsa_widgets_init' );
// 4. REDIRECT SETELAH AKTIVASI TEMA
function edukarsa_activation_redirect() {
global $pagenow;
// Cek jika ini halaman themes.php dan ada parameter 'activated'
if ( is_admin() && 'themes.php' === $pagenow && isset( $_GET['activated'] ) ) {
wp_redirect( admin_url( 'admin.php?page=edukarsa_main_menu' ) );
exit;
}
}
add_action( 'after_switch_theme', 'edukarsa_activation_redirect' );
BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB