Try this:
function remove_link( $format, $link ) {
return false;
}
add_filter( 'previous_post_link', 'remove_link' );
add_filter( 'next_post_link', 'remove_link' );
It should work if the theme uses next_post_link()
and previous_post_link()
.
Cheers
Related Posts:
- How to filter the_content() & include content from template
- Can / should a widget plugin define its own Widget Area?
- Custom signature appears twice on page
- append code after the_content not working
- add_filter adds output in the head
- How to create an API for my plugin?
- How can I load a page template from a plugin?
- How to get Post ID with the Add Filter Function
- How do you use the plugin boilerplate loader class to hook actions and filters?
- add_filter OO with parameters
- the_content after all shortcodes are parsed
- How Can I Add a Filter to Class Instance Only?
- How do I Make a Theme “plugin-ready”?
- How to remove unwanted panels inside InspectorControls from core blocks in Gutenberg
- function triggered by “manage_users_custom_column” filter not working
- How to ensure “the_content” filter runs only for the main displayed content?
- How to modify post content before writing to database?
- Actions or filters fired when data is saved in a custom table
- Some nav-menu filters do nothing
- Filter on the_content ignores shortcodes
- How to change wordpress post title?
- Filter to change the content of 404 page
- Display only certain posts based on visitor’s country?
- How to use filter hook ‘post_updated_messages’ in coherence with action hook ‘save_post’
- Is it possible to create an action hook using do_action() within add_action()?
- Hook for post permalink update
- Dynamically Override Fancy Title
- How to allow Unfiltered HTML in a wordpress multisite install
- How to add custom content under plugin row in WordPress admin plugin list?
- Changing bloginfo description from a plugin
- Is there a way to verified if an add_filter is already applied?
- multiple functions with same filter
- Woocommerce – Hide a Column in Cart Table
- Version upgrade: can my plugin filter the SQL statements issued during a database upgrade?
- Finding the paragraphs in content
- add_filter : Passing an array instead of the callback function?
- How do I alter the comment form ‘allowed tags’ text in a plugin?
- $content variable – Is this a reserved variable for a WordPress function? – php / wordpress
- WordPress after content Hook & external template part
- Namespaced action and filter tags
- Is there a Filter that I can use to filter the tags before they are inserted in to the database?
- WordPress is automatically linking plain text email addresses
- best practice for query string values – get_query_var always empty for my value supplied in query string
- How To Change Logout Screen Title
- Check for template part, else filter content
- Adding rewrite rule dynamically
- Replace youtube embed in wordpress
- Can’t get woocommerce_get_price_html to work [closed]
- Search and Filter
- How can I replace content in the WP Admin area before an admin page is rendered?
- Caching the_content calls
- Run Shortcode of post’s custom field in functions.php / Plugin
- How to filter content for specific content variable
- WordPress custom taxonomy check box to dropdown
- Using ob_get_content to get_search_form puts into infinite loop
- Valid filenames for add_action’s first parameter
- How do I access the menus produced by Dashboard > Appearance > Menus
- Proper way to replace the_content only for pages created by custom plugin
- WordPress class, using add_action to call member function does not work
- What happens when two or more plugins use the same hook?
- How to get the post excerpt using post object?
- Remove an action by extending class and replacing it
- hook filter after the_content on a specific page
- Call to undefined function is_home() or any conditional tags
- WooCommerce change Tax Class programmatically when Recalculating an existing Order [closed]
- Add function after the_content
- Include HTML (Bootstrap Modal Box) with a plugin into my header
- Information on plugin adding text when a post, page, or other such is displayed
- WP_NAV_MENU filter targets all menus
- Adding filter to the title without affecting the menu title
- How to validate inputs with filter in register_setting callback
- How to get changed post title in my custom plug-in which fires when ‘save_post’ is called?
- Is there an action_filter hook to add content before the post title?
- Adding tables to dashboard pages programmatically?
- Can I attach a plugin via my add_filter callback contents?
- apply_filters() and call_user_func() to define and call a function outside a class
- Is there a way to get rendered html content of a WP post after updating?
- Limit get_next_post to posts from the same author
- Any way, hook to add content right before the “read more” link?
- Redirect theme directory to plugin theme directory
- WordPress Reset password Strength set to medium
- login_message filter not working
- WordPress Dropdown image select
- Can I add content before post content without using the_content filter
- Modify search form with plugin
- Single_template for a custom post type created from a plugin is returning an empty page
- get_comment_meta() for a filter hook in a plugin
- WordPress Add advertising ads befor and after content with periority [closed]
- Which filter to use to pre-parse form elements, which are generated by plugin’s shortcode?
- Navigate to external link if last page or post in a category
- Confusing $tag specification for apply_filters call, in core options.php code
- How to filter get_adjacent_post()?
- Filter the_content() to add custom figure tags
- WordPress permalink setting
- post_results filter confused by pagination in sidebar and main section
- How do I replace title with my plugin?
- Apply Filters Causing a 500 Internal Server Error
- How to parse without changing the characters case (lower and upper) in wordpress the_content?
- Apply function on all action hooks?
- Ninja Forms: Front-End Forms, Post ID?