update wp plugin code - Load CSS / JS on specific admin page url
$20 USD
Closed
Posted over 4 years ago
$20 USD
Paid on delivery
/[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');
}
}
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.
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 develop features as per your needs.
Please discuss to me on the chat.
I am waiting your good response
Thanks
Shikha
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