Use the admin_head hook and just echo out what you need to:
function my_admin_head() {
// Custom Style
echo '<link rel="stylesheet" href="'.WP_PLUGIN_DIR.'/style.css" type="text/css" />';
// Our JS
echo '<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>';
}
add_action('admin_head', 'my_admin_head');
Related Posts:
- How to Change CSS Colors from Custom Plugin Settings Page
- register dependency css and js inside a plugin class
- WordPress Admin Bar pushed Sticky Footer off the bottom of the page
- Gutenberg Blocks doesn’t render correctly when using do_blocks
- Create custom blocks for bootstrap
- Minify HTML, CSS, JS with PHPWee?
- Archive dropdown styling not applied
- How to display a value from a radio button in the options menu in wordpress
- admin-ajax.php responding with 0
- Page Reloads Before AJAX Request Finishes
- Show post in slider
- How to test nonce with AJAX – Plugin development
- Slider loading issue
- Plugin CSS not enqueing
- How to select the contents in the text view textrea in wp_editor?
- How to send Ajax request from my plugin in admin dashboard?
- Incorrect MIME type for assets with Valet
- How does wp_enqueue_scripts work?
- AJAX success response is not working but it’s saving my changes
- Redirect to another page using contact form 7? [closed]
- Add Codepen animation as Preloader to WordPress
- Is it save to use eval for a jQuery callback method coming from the database?
- trouble with page_id & highlighting current page
- How to add drag and drop functionalities to a div inside option panel
- Passing the name of selected color from the custom component to `render_callback`
- Post repeated when opening in overlay, how do I solve this? [closed]
- Link to page with posts of specific type
- How to sort posts by active category in WordPress?
- WordPress – Get Posts with Category data
- How to use wp_send_json() and output the value with ajax?
- How to Remove Theme Style CSS inside Custom Plugin?
- Settings API form – submit with AJAX
- How to extend SelectControl with data from my theme
- Post form – AJAX won’t upload featured image – Plugin development
- Add other class content with reference class value
- Creating a POP Alert
- How do I integrate vanilla Javascript to a wordpress website?
- Drop down question
- How do I disable cache for a certain page?
- Google CSE Malfunctions via Chrome/Safari on Mobile When Clicking on Either Search Icon/Menu Icon. How to Make Google CSE Default Theme Search
- I have a lot of JavaScript erorrs after SSL someone can help me?
- WordPress Slider is not working
- Bring Font Awesome icons inside menu A tags
- custom field – changing an element or background of id div – different versions not working
- Target a specific container to style on WordPress storefront theme
- Where to find the html for WordPress site? [closed]
- widget: input the px value from user and use it as inline style in widget function
- How to use Amazon Elastic Transcoder from WordPress using AWS SDK for PHP?
- Why this plugin is not working?
- Trying to customize wordpress drop down categories
- how can I make content from a plugin hidden when user is logged in? [duplicate]
- How to create and add js and css file when server is not on my PC?
- Import js variables loaded via wp_localize_script() into js module without global scope connection
- how to escape alert/window.location.replace with variable
- JQuery UI Autocomplete showing as bullets
- Embed dynamic media query in a Gutenberg block
- Add Imports to Existing WordPress Import Map
- Hide or Show Read More Button by Content Area
- Combine CSS and JS files from plugins
- How to change date language without changing the entire site language?
- Problem with WordPress Ajax form
- Uncaught TypeError: Cannot read property ‘firstChild’ of null after upgrading to WordPress 5.5
- Using Font Awesome as post thumbnail
- How to restrict wp generate attachment metadata() to certain intermediate image sizes
- How can I hide Home in my menu in a specific page?
- Append HTML Using Shortcode
- How to pass aa JS variable to PHP?
- Image upload via FormData API and AJAX is not working ($_FILES always empty)
- I have a problem in the order of enqueues while enqueuing stylesheets and scripts for a specific page in my function.php
- How to auto fetch customer details in Woocommerce in checkout page
- how to update and display an option without reloading the page
- Plugin Generate Unexpected output during activation
- Issue Enqueueing WordPress style.css
- Adding Additional Variables on Menus Page
- Accessing an API with jQuery and AJAX
- Using flickr api in custom wordpress plugin
- Toolbar Hidden in a Virtual Page
- How to correctly escape an echo
- Timber right sidebar in WordPress theme
- 400 bad request admin-ajax file upload
- get Woocommerce product format json for WP_Query
- Add Shortcode to ::before class
- Filtering markers on google map by WordPress category[SOLVED]
- The plugin generated 225 characters of unexpected output during activation
- Call jQuery function from PHP?
- Parsing webhook from Shopify in WordPress
- scroll scrpit to particular button position to next id when click button
- WordPress / PhpStorm / XDebug and plugin_dir_path issues
- Send data from plugin to external database
- Display pages from specific page template
- Sidebar doesnt get updated?
- get_option(‘admin_email’) not working in wordpress when using ajax call
- Add a “Next Post” & “Previous Post” styled button manually to a post
- base64_encode conflict with convert_smilies in wordpress
- Disable Typed Parameters for JavaScript in PhpStorm? [closed]
- Properly process a custom WP REST API request (Authenticate, Authorize + Validate)?
- Losing Session ID and sessionStorage when navigating to other domains on Multisite
- Having trouble customizing toolbar on wp_editor
- Load wp_editor on button click
- Editing stylehseet url in head section of WordPress