You action filter is wrong.
First change this function name function register_scripts
, it’s a bad name, use something unique.
Second change add_action ("admin_print_styles-post.php", "payee_init");
to a proper hook like add_action ("wp_enqueue_scripts", "payee_init");
http://codex.wordpress.org/Function_Reference/wp_enqueue_script
Related Posts:
- Adding scripts to admin page in my theme
- Enqueue script throws error in console
- wp_enqueue_scripts, wp_register_scripts, wp_print_scripts: i’m confused
- Register and enqueue conditional (browser-specific) javascript files?
- Allowing admin-ajax.php to receive “application/json” instead of “x-www-form-urlencoded”
- Set Featured Image programmatically (in admin) with JavaScript?
- How can I include JavaScript that use jQuery on admin side
- wp_register_script multiple identifiers?
- Use js script from one plugin in another plugin
- Dequeue / Deregister script and replace it with a new plugin
- Javascript not working in admin
- Can’t get JS code to work with shortcode
- Refreshing collections in the admin media manager
- wp.template() Not a function
- How to enable enqueue_script to work with a logged in user?
- Deregistering a script in WordPress seems impossible
- How can I load an inline script after the enqueued scripts in admin?
- wp-admin post.php JavaScript Links Not Working
- React JSX in WordPress Plugin Development
- admin_enqueue_scripts not working
- Why won’t my scripts load?
- When to use add_action when registering/enqueuing scripts
- jQuery UI AutoComplete & wp_enqueue_script
- Plugin admin panel JavaScript Broken
- Is there a way to check for an attribute of a script when using script_loader_tag?
- Activate Gallery Options in Media Uploader for Custom Usage
- How to enqueue admin content outside admincp
- Scripts not loading through function Method in WordPress Theme
- How to register and enqueue JavaScript files without breaking plugin dependencies?
- Add crossorigin to SCRIPT tag
- Why does Thickbox jQuery load on my site?
- Include script files for admin submenu page
- Load stylesheet on custom admin submenu page
- Failing to load my script files in wordpress! i can’t figure out what i’m doing wrong
- Add JavaScript in admin in custom plugin [duplicate]
- WordPress Admin Thickbox: Remove Margins/Padding
- Scripts are not called until I login from wordpress backend
- JavaScript file successfully registered but does not render correctly
- Enqueued script fails
- Admin back end – get URL of file using file browser
- Using Google Analytics in an enqueued JS file
- Script Loaded in WordPress but won’t run
- Passing state from child component to parent component in a Gutenberg Sidebar
- I can’t enter the control panel of my wordpress site after channing the URL to https://
- Show all admin menus in a table
- Is “document loaded” different on admin side than public side?
- How can all E-mails be sent with BCC copy to Admin?
- How to exclude some post from admin edit screen
- Where is the User’s Admin Bar Preference stored? I want it to default to off for new users
- “The editor has encountered an unexpected error” After add defer tag to java script
- How To Create WordPress Dashboard Item
- Unable to edit my “Administration Email Address” after mySQL editing?
- Adding a WordPress Admin Dashboard to my local wordpress site
- Admin user column sort by numeric meta key
- How to show WordPress admin dashboard forms on front-end?
- How To Remove Import/Export Option From Tools?
- How to pass data to javascript in custom widget class
- Why does my admin email address keep changing to something random?
- WordPress Admin Doesnt work
- Allow custom REST route to return before doing long operation
- WordPress Admin Page
- Shop in Subdomain feeding main domain order in admin area
- cannot access the wordpress dashboard after changing the site url
- Can I retrieve Published changes when changes have been Saved but not Published in WordPress Semplice?
- Why can I not deregister my style and script on custom post type?
- Highlight active Admin Menu when added though add_menu_page
- Login to admin by frontend form?
- Client side pre-save Javascript hook on all admin pages
- Error 404 Display on otherlinks apart from homepage
- Reset WordPress admin users to limit access
- Is it possible to push admin notices to one specific user instead of all users?
- Enqueue registered dependencies only when necessary
- Unable to access admin web page
- WordPress – add help text under category list(right side) in post edit page
- Append php file to footer
- After upgrading to WP 5.1.1 sometimes I need to reauth infinitively
- How to make JQuery load on top of head tag before everything
- Doesn’t call user information to include “wp-load.php” in an external php file
- Loading two versions of same JS libary
- Only a small portion of my export page renders
- How do I add an admin table to my page?
- How to save edited post when submitting form
- plugins_url not returning correct directory
- Error “Sorry, you are not allowed to access this page”
- require/include php file in add_menu()
- When to use wp_register_script() function?
- I can’t access login page
- Cannot access wp-admin after installing SSL – user capabilities not being set
- Enqueue CSS and Script only if needeed
- Admin Bar Acting Up
- How do I keep children of certain parent menus expanded by default on a sidebar?
- Show admin bar to editors with Buddypres
- Trying to hide a submenu link which is created by Co-authors Plus plugin
- Proper way of minifiying java script files in wordpress theme
- WP administration over SSL using different domain
- Create WordPress Menu Item Without Linking to a Custom Page
- Admin Access for specific page(s)
- How to check a category checkbox using JavaScript
- How can I restrict ‘edit_form_after_’ to a specific post/page?
- Redirect non-admin after login, and in url – /admin