Your code is correct, AFAIK. It will disable the ability to do trackback/pings. It doesn’t remove that option from the screen, as you have noticed.
Not sure how to test that, though. But your code should work to disable the actual process of allowing trackback/ping.
This site might test trackback/pings https://tech.wizbangblog.com/ping.php . No experience with it, so YMMV.
Related Posts:
- Display posts by month
- Disable External Pingacks on WordPress Posts and Only Allow ‘Self Pings’
- How to get 2 or multiple custom post types in wordpress functions.php
- Creating bulk posts with Youtube videos
- Hide wordpress field if data is empty in post!
- Custom posts in different columns style
- What file have I to create in my custom WordPress theme to show all the post belonging to a specific category?
- Update if post with specific title exists
- How to Send Pingbacks for all Posts in WordPress?
- Only display notification on single post
- Auto create description in post
- Add multiple HTML attributes to an Elementor button
- Disable Attachment Pages Completely
- Cleaning up WordPress to improve performance?
- List of all theme customizer control types?
- Inject post (from specific category) between posts in Loop
- Show the most popular post per week
- Add a class to links in the visual editor (how to get old dialog back)
- How to remove hardcoded characters from playlists?
- Search and Replace in database: How to replace data in SQL dump file on Windows?
- Infinite-Scroll Plugin and Jetpack Infinite Scroll Plugin – Adding to “Thoughts” Theme
- Handling an Ajax form submit
- Is it recommended to pass some data to scripts in `wp_enqueue_scripts`?
- Automatically generate Post/Page from searched Database item?
- “before delete post” action fire when the post is updated?
- Hide post if matches current month and year
- How Display Posts on category
- Change the site tagline (or similar) based on current page
- Query all posts of a custom taxonomy term
- create a select input with menus created on a custom options page
- How to pick the default selected value in wordpress dropdown?
- Customize position of social icons in upme plugin [closed]
- remove post that has no content
- Media Upload , file name changed automatically
- Replace shortcode in substring
- How to show only subcategories in parent category not parent category?
- What exactly do this function declared into functions.php file of a WP theme?
- WP Insert Post and then go to post
- Get latest post from all categories except one
- Parse error: syntax error, unexpected end of file
- customize wordpress database error page
- How to fix this PHP warning in WP-Admin after upgrading to 3.1.2?
- Load Posts on Click via Ajax into a DIV
- Ajax search shows all results when user empties input?
- List post by title length
- create front-end users post list by specific category
- Need help with pagination
- Error display post thumbnails for previous and next post
- form $_post action value gets truncated after it passes through two forms
- Editor capabilities – admin_init
- WP insert post Redirect after function has executed
- Wp Query : Order by distance lat,lon
- get value from get_post_meta then reuse it in another get_post_meta
- How to show categories and date on posts
- How can I add diffrent editable text fields?
- WordPress Post Block Element not properly parsed with the_content filter
- Build A Custom SQL Query for WordPress Search
- WordPress Custom Form – Getting Query Vars, Weird Glitch?
- Woocommerce template file outputting tags
- Featured image in menu wordpres
- Trying to update Woocommerce meta values
- Display articles with a different template in the home page | Solved |
- How can I check if a post with a particular slug or title exists?
- WordPress sorting posts by date and title using a dropdown
- Having trouble creating two shortcodes, one for logged in user and one for visitors
- Trying to get post ID outside loop on blog page
- How can I update the price when someone enters postcode or zip code in woocommerce checkout page?
- Enqueue script only on child pages of custom post types
- Attach and retrive multiple pdf files to post or page
- Create “blank” admin page without having admin-bar/admin-menu for faster load
- Need help transforming echo to return for use with shortcode
- Noob question: want to remove the “site identity” logo for specific part of website only
- Get list of posts from attachment
- Create Schema in WordPress with PHP
- Send Notification after post published was working but stopped after the last WP update
- Redirect after login depending on the URL
- When working with a post, almost all wp_postmeta are deleted
- Displaying POST content with HTML tags and all
- Generate random access token to a post page
- Real time notification on user profile after new comment
- How to add text before posts
- Pagination in WP Queries
- Add two or multiple functions in WordPress Post or Page
- Add div after every 4 posts then every 2 posts for a responsive loop
- WordPress error on my website
- Can’t put a hyperlink on Featured Post’s Image
- WordPress get_post_meta issue
- Best way to define a database with product codes and back-end support?
- Automatically create a loop for post ID
- wp_customize_image_control default value
- Display pages from specific page template
- Widget header unique classes
- How to add button to top of theme customizer?
- How can I add more code to this?
- Edit the Publish Widget Options
- Query posts by custom fields (object post)
- How to display the date under the post title?
- New to WordPress & Freelancing [closed]
- WooCommerce: write featured image dimensions to custom fields in product’
- transition_post_status hook, works – but not if the post is new