you should use wp_print_scripts
hook for your scripts instead of init
and in your callback make sure that you are not in the administration pages something like this:
add_action('wp_print_scripts','register_libraries');
function register_libraries(){
if (!is_admin()){
//enqueue your scripts here
}
}
as for adding flash, that should be a separate question just make sure to add more details about it.
Related Posts:
- How to fork a plugin?
- Where to store PHP files created by plugin / themes
- How to debug a plugin with Xdebug?
- WordPress 4.5 deprecated get_currentuserinfo()
- Single Responsibility Principle and WP Classes
- How to control output of custom post type without modifying theme?
- Admin config screen without menu
- What is the added “complexity” of custom tables?
- How to Structure a New Role/Capability Scheme?
- How to create Image gallery Metabox in wordpress [closed]
- Is it possible to create an action hook using do_action() within add_action()?
- How to exclude content (and other returned values) from WP_query()?
- Why does preg_replace_callback never fire in this function?
- WordPress 2.8 Widget API is suitable for Worpress 3.1.4 plugins development?
- Need specific kind of “Poll Voting” for WordPress [closed]
- WordPress select dropdown list in widget
- Call to undefined function get_blog_option()
- Unable to get content from $post on first publish
- Plugin admin page meta_box toggle and order state not saving
- Broken markup when using the_excerpt() in a widget?
- Best Practices for Creating and Handling Forms with Plugins?
- Is there a better way to implement responsive images than what WordPress uses by default?
- Gutenberg Block add element in the Editor inside InnerBlocks after div – editor-block-list
- How to add pages to custom menus on the fly [duplicate]
- How can I add a CSS rule to edit.php?
- How do you render_callback for register_block_type to a method in another class?
- Get the password key when using the wp_new_user_notification_email filter
- WordPress API have Plugin Anti-piracy feature?
- Use WP_Theme::scandir function to scan a plugin directory. Is there a way?
- How to add settings subpage from a plugin to a settings page created in theme?
- Plugin options not being saved or created
- Customizer: widget-synced triggers twice
- Plugin Repo: Why do some plugins get version charts while others don’t?
- maintaing consistent layout wordpress dashboard
- Change the ‘published on’ text?
- .mo translation strings not loading in PHP scripts that handle AJAX calls
- Admin Plugin POST to another file within the plugin
- user_register not triggering with email verification
- How to get boolean value from register_meta properly?
- Why is the WordPress taxonomy not registering?
- Gravity Forms Perks – Nested Forms
- Checking for existence of a page by title?
- pagination in a custom list created with get_pages function
- How can I identify it as admin page or not?
- AJAX form post returns 0
- Adding admin menus to wordpress
- Update custom plugin with WP-CLI
- Autogenerate a Table of Contents
- Plugin AJAX Save to Custom Table
- Why enqueue styles on hook?
- Fatal error: Cannot redeclare admin_notice() [closed]
- Update wordpress Core Remotely
- Using Product variations as product addons
- WordPress: How to rename the main php plugin base file?
- Filter for admin (back end) ‘reply to’ comment
- How to get custom post_author?
- Will I get an error if I try unscheduling a WP Cron scheduled task that wasn’t scheduled?
- Conditional Generation of Image Sizes using add_image_size
- Change author permalink to external URL
- Is there any way to hide page from dashboard (all pages list) OR navbar from plugin function?
- WordPress database error: [Query was empty] – using $wpdb->prepare()
- Custom Settings Plugin Save foreach checkboxes
- wp.media Uncaught TypeError: Cannot read properties of undefined (reading ‘state’)
- wordpress full site editing problem when extending core blocks
- How to check if `comment_meta` exists before inserting the comment?
- Showing results from json-string in WordPress search results page
- Pass custom props to
- Add default custom taxonomy to plugin activation
- GET request return value as error instead of success
- How to update global variables in plugin activation callback?
- How to revive (or take over) a plugin?
- Make visible page only in the trash
- Reading plugin settings in esnext wordpress block
- Plugin frontend page design irrespective of the theme used
- How to include a page template and template part into my plugin
- WP_Fatal_Error_Handler OR WP_Error OR try/catch
- Why does do_action pass a blank string as the first parameter if no $arg is set?
- Woocommerce product not appearing in category list page when created programatically [closed]
- add_meta_box does not display meta box in Admin
- How to store in the database directly the translation?
- How to affect front page by plugin
- What is the “best” way to update a theme via a plugin?
- Is there a an option to modify the post content directly on the browser instead of having it reflected on browser by modifying in the database?
- Acessing WP functions in form submission handler
- Custom theme and plugin updating
- Developing a plugin, ran it through P3 Profiler, shows up slow, but I don’t know why
- Dynamic banner for use on external sites
- What method should I use to store my plugin data (multi level menus with options on each item)
- problem with blank page
- Error on using __FILE__ for add_menu_page() Function
- Getting error of unexpected output during activation
- Use custom clean URLs for a plug in
- Cannot echo a JS variable to a jQuery plugin coming from wp_localize_script
- Practical Solutions to HTML5 Video on WordPress
- An adiitional function fires on my AJAX submit
- Projectmanager Internal Link Code Location
- Select options not reloading after form submit
- How to add something after a function
- Plugin SVN folder structure
- how many rupee or dollar charge to client to make theme [closed]