update wp plugin code - Load CSS / JS on specific admin page url

Closed Posted 4 years ago Paid on delivery
Closed 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');

}

}

PHP WordPress JavaScript CSS jQuery / Prototype

Project ID: #21366847

About the project

9 proposals Remote project Active 4 years ago

9 freelancers are bidding on average $45 for this job

fattahaabdul

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.

$150 USD in 7 days
(282 Reviews)
8.8
dynamitewebsol

Hello, I read your requirements and understand very-well and ready to start work from now. Thank you

$20 USD in 1 day
(332 Reviews)
7.9
suronjit

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.

$20 USD in 1 day
(85 Reviews)
5.7
projectsTF

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 More

$20 USD in 1 day
(1 Review)
1.7
AkmalNoor1

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

$25 USD in 10 days
(0 Reviews)
0.0