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
- When to use Exceptions vs Error Objects vs just plain false/null
- Conditionally loading JavaScript based on the Advanced Custom Fields in the post
- Is there a reason why my wordpress PHP page isn’t loading into my PHP template
- How to resize image on client-side before upload?
- Limit the Excerpt field in WP-Admin in words
- Audio Player not loading when the content is loaded through Ajax, MediaElement.js no applied
- how to create and show sessions in word press?
- Put CSS inside a PHP file and include it the right way
- Sending jsPDF documents to the server
- wp_insert_post() is returning the correct post ID, no failure, but the post content does not get updated
- Displaying admin notices inside the block editor from rest_after_insert_{$this->post_type} hook
- How to set up VS Code for WP plugin/theme development in 2021? [closed]
- Saving an array of dynamic repeater data as post_meta
- PHP > Scheduled Tasks > Sending daily email with dynamic API variables
- How to add a Custom Mailchimp AJAX Newsletter Subscribe Form
- proper way to add css using functions.php?
- “Undefined index” error when saving empty array with checkboxes
- RTL Stylesheet Confusion with WordPress
- How to make container class in PHP
- Building a REST API for your web app exposes primary keys of DB records?
- How to use wordpress function wp_enqueue_script() in php?
- Action Hook Inside WordPress Plugin Shortcode
- Submit form to db
- Some problems in custom widget
- Call a function in functions.php from within tags (JS)
- Displaying images outside the content
- WordPress Search Ajax + Isotope + InfiniteScroll
- WordPress User Meta value variable into Google Gauge Chart
- PHP function for horizontal Woocommerce thumbnails and badges
- dynamic php menu with hidden sub-categories only showing when the category name is clicked
- separate list of programs in html/javascript coming from php
- How to print all the inline styles in the WP_Styles instance together with their keys?
- The style.php file inside theme-engine folder has other content on FTP
- Register/enqueue scripts only on certain admin pages
- Looping through custom data in a custom table to display all items in a post
- Custom Plugin Develoment, Form Action
- WordPress Query Crashes Browser
- How to Request a User to Register on Landing at a Site, Then Automatically Delete the Users Password on Logout?
- Plugin Modification Change Functionality For Logged User Only
- Custom Theme, Editor won’t wrap text (i.e. change width)
- customizer live preview layout picker
- add shortcode heading showing multiple time
- AJAX & PHP | Call a specific PHP function from a PHP file via AJAX?
- using a shortcode in a hyperlink
- New to wordpress. Need Help with templates [closed]
- Login user into magento using wordpress account
- Customize create table SQL statement in any WordPress plugin