update wp plugin code - Load CSS / JS on specific admin page url
$20 USD
Maksettu toimituksen yhteydessä
/[login to view URL]
I want the plugin (css / js) plugin js to only load on that specific url NOT on all wp-admin pages.
wp_enqueue_style
wp_enqueue_script
-----
I have this much code so far but it doesnt seem to do the job
function load_assets(){
$current_page = get_current_screen()->base;
if($current_page == 'ep-mock-draft-settings') {
wp_register_style('custom_wp_admin_css1', plugins_url('/assets/css/[login to view URL]'));
wp_enqueue_style('custom_wp_admin_css1');
wp_enqueue_script('admin_js_bootstrap_hack', plugins_url('/assets/js/[login to view URL]'), false, '1.0.0', true);
wp_enqueue_script('admin_js_jquery_ui', plugins_url('/assets/js/[login to view URL]'), array('jquery'),false,true);
}
else { // # if not on post page, deregister and dequeue styles & scripts
wp_dequeue_style('custom_wp_admin_css1');
wp_dequeue_script('admin_js_bootstrap_hack');
wp_dequeue_script('admin_js_jquery_ui');
}
}
Projektin tunnus: #21366847
Tietoa projektista
9 freelanceria on tarjonnut keskimäärin $45 tähän työhön
I can update WP plugin for you. I have 8+ years of experience in WordPress. I assure you that I will give 100% quality work. Let us discuss and proceed further in chat. I am online. Please reply.
Hello, I read your requirements and understand very-well and ready to start work from now. Thank you
I have 5 years experience in web developing using wordpress.I have sound knowledge in php,jquery,javascript,css and html.I am ready to do this task.
Hi, Hope you are doing well!! I have gone through your project requirement. I am expert in wordpress web development and designing . I developed and design wordpress websites. Sure, I will fix design and develo Lisää
Am expert in php, css , css3 ,html, html 3, java script, Relevant Skills and Experience Over 3 years experience in this field My working speed is well and too much satisfied