We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add_action( 'admin_enqueue_scripts', 'mw_enqueue_color_picker' ); function mw_enqueue_color_picker( $hook_suffix ) { // first check that $hook_suffix is appropriate for your admin page wp_enqueue_style( 'wp-color-picker' ); wp_enqueue_script( 'my-script-handle', plugins_url('my-script.js', __FILE__ ), array( 'wp-color-picker' ), false, true ); }
<input type="text" value="#bada55" class="my-color-field" data-default-color="#effeff" />
jQuery(document).ready(function($){ $('.my-color-field').wpColorPicker(); });
Since WP 3.5 https://make.wordpress.org/core/2012/11/30/new-color-picker-in-wp-3-5/
The text was updated successfully, but these errors were encountered:
Include via c4bdf61
Sorry, something went wrong.
No branches or pull requests
Since WP 3.5
https://make.wordpress.org/core/2012/11/30/new-color-picker-in-wp-3-5/
The text was updated successfully, but these errors were encountered: