Bulan: September 2014

WordPress: Get Child Theme Directory Path

Until now, there is no legitimate code to get WordPress child theme directory path. But, maybe this code would help you to do that. define(‘child_template_directory’, dirname( get_bloginfo(‘stylesheet_url’)) ); // register the javascript function umrah_js() { wp_register_script( ‘jquery-textualizer’, child_template_directory . ‘/js/textualizer.min.js’,… Baca selengkapnya WordPress: Get Child Theme Directory Path

Add Setting Page To Custom Post Type

add_action(‘admin_menu’ , ‘add_settings_page’); function add_settings_page() { add_submenu_page(‘edit.php?post_type=custom’, ‘Custom Post Type Admin’, ‘Custom Settings’, ‘edit_posts’, basename(__FILE__), ‘setting_page’); } edit.php?post_type=custom Here where you want to add custom menu to your custom post type. Change custom to your custom post type slug Custom… Baca selengkapnya Add Setting Page To Custom Post Type

Scroll to Top