I want to create a custom button to go the customize.php. I want to create it here I want to create it here

1 Answer 1


Use media_buttons action for it. Check below code.

add_action('media_buttons', 'add_my_media_button');
function add_my_media_button(){
 echo '<a href="'.get_site_url().'/wp-admin/customize.php" class="button button-default">Customize</a>';

Hope this will helps you.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.