Under the discussion tab on the post page, there’s ‘allow comments’ and ‘allow trackbacks and pingbacks’, how would I hide the option to allow pingbacks from users but still have it be on by default?
1 comment
Comments are closed.
Under the discussion tab on the post page, there’s ‘allow comments’ and ‘allow trackbacks and pingbacks’, how would I hide the option to allow pingbacks from users but still have it be on by default?
Comments are closed.
Method 1 (CSS)
You can hide it for all non-admins via CSS:
Before:
After:
Method 2 (PHP)
You can also remove the native discussion metabox and replace it with your own:
where the
ping_status
form input field is hidden with the current value.After: