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

Suljettu Julkaistu 4 vuotta sitten Maksettu toimituksen yhteydessä
Suljettu 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');

}

}

PHP WordPress JavaScript CSS jQuery / Prototype

Projektin tunnus: #21366847

Tietoa projektista

9 ehdotusta Etäprojekti Aktiivinen 4 vuotta sitten

9 freelanceria on tarjonnut keskimäärin $45 tähän työhön

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 7 päivässä
(282 arvostelua)
8.8
dynamitewebsol

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

$20 USD 1 päivässä
(332 arvostelua)
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 1 päivässä
(85 arvostelua)
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 Lisää

$20 USD 1 päivässä
(1 arvostelu)
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 10 päivässä
(0 arvostelua)
0.0