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
- 404 error on page reload
- Validate a custom form with js and php
- Embed dynamic media query in a Gutenberg block
- Add Imports to Existing WordPress Import Map
- OOP Plugin Development. Including external object
- Authenticating to WordPress, using my own authentication two-factor system
- Ajax call doesn’t work in frontend but it’s working in backend (when I’m logged in)
- Data fetch and delete by ajax request
- Use composer to load custom classes [closed]
- Handling an Ajax form submit
- Resize Image without cropping
- Customizer Show/Hide Logo and Site Title
- wp enqueue style and style sheet depth
- How to block specific keywords from searching on WordPress?
- Understanding WordPress child theme custom JS loading
- How to create filterable portfolio in WordPress?
- Why is PHP Cookie via plugin only set when logged in as Admin and not regular users? and other questions
- how to create and show sessions in word press?
- WordPress Customizer not setting default value upon initial install?
- Theme Customizer – Dynamic CSS PHP File
- API JSON Data in WordPress
- CSS saved & enqueued, but wordpress doesn’t load css text, only file
- Disable External Pingacks on WordPress Posts and Only Allow ‘Self Pings’
- wordpress custom endpoint multiple params
- Using PHP in a Stylesheet (possibly a “.htaccess” problem?)
- Loading page template into shortcode
- Use different javascript files for each page on website
- WordPress loop specific thumbnail size
- Why when I instantiate wp_error in a validation method my user registration method stops working?
- WordPress doesn’t include css
- Using a javascript file to access a get posts array
- My shortcode is showing up twice
- Using an Image Slider twice on the same page
- Database “Migration” for Plugins?
- Understanding child theme functions.php
- WordPress template_include filter not working properly
- wp_enqueue_style with style.php and WordPress functions
- Custom plugin issue when trying to use the shortcode twice on a page [closed]
- When is is_admin() available?
- Create table in database when activating plugin
- do not show web page section when using advanced custom fields pro
- Is it possible to use the featured image of a page as a css background without inlining?
- How to get all existing post types
- JavaScript, best way to use data from the loop
- Custom WordPress+PHP+MYSQL+AJAX form, submit event not captured by Javascript, but does POST data to the DB