Created
June 5, 2020 22:01
-
-
Save gdarko/66cc7a3169ec4ab5e838a21671d6e947 to your computer and use it in GitHub Desktop.
Hide upload options on WP Vimeo Videos
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Hide Upload options on WP Vimeo Videos | |
* @return void | |
*/ | |
function wvv_disable_upload_options() { | |
echo '<style>.dgv-vimeo-form-row label {display:none !important;}</style>'; | |
} | |
add_action('admin_head', 'wvv_disable_upload_options'); |
Perfect!!! Thank you so much Darko!
Patrick Kimbrell
email: pat.kimbrell@gmail.com
…On Fri, Jun 5, 2020 at 5:51 PM Darko Gjorgjijoski ***@***.***> wrote:
***@***.**** commented on this gist.
------------------------------
@pkimbrell38 <https://github.com/pkimbrell38>
Yes, something like this
/** * Hide Upload options on WP Vimeo Videos * @return void */function wvv_disable_upload_options() {
echo '<style>.dgv-vimeo-form-row label:not(:first-child){display: none !important;}</style>';
}add_action('admin_head', 'wvv_disable_upload_options');
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<https://gist.github.com/66cc7a3169ec4ab5e838a21671d6e947#gistcomment-3331600>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AP3LDINGQZFDIBDJD6XEEZ3RVGAGXANCNFSM4NVJZROQ>
.
Great! No problem.
Have a nice weekend!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@pkimbrell38
Yes, something like this