feat(admin): tambah redirect aktivasi, tombol setting di about, dan screenshot tema
This commit is contained in:
@@ -103,3 +103,14 @@ function 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' );
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 5.2 KiB |
Reference in New Issue
Block a user