add_filter( 'comments_template', function ( $template ) {
return '/absolute/path/to/your/comments.php';
});
Related Posts:
- How to change commenter links to /user/user_id?
- Pass PHP variable to javascript
- Page Templates from plugin not working after upgrading WP to 4.7 or upper version
- Creating a default Custom Post Template that a Theme can override
- How can I add a custom header to a custom template in a plugin without using the theme folders
- How does WooCommerce display a custom comment_type in Comment Admin?
- Custom url structure for custom template
- adding a text message beside the comment submit button
- How to add a privacy-checkbox in comment-template?
- Plugin: How should I handle deleting comments?
- Get image URL from media library in input
- Plugin Functionality Only for Editor and Administrator
- How can I get WordPress to save comments in markdown format?
- Can we use a webservice with WordPress?
- WP Post Template – Templates in own folder
- Register Page Template from Plugin
- Creating a plugin to sanitize comment and the url field before display only
- WordPress comments not appearing in blog posts, likely because of Redux template. Could I fix this with a plugin that adds a comment form as a block? [closed]
- Plugin-generated pages use Not Found or Pages Archive templates?
- Perform internal redirect in WordPress?
- how to force tag page layout to use same as search layout?
- Custom setup of wordpress comments that are displayed
- Default taxonomy template in plugin, override in theme
- How to use template inside plugin shortcode with variables for big HTML code
- How do I show content from a plugin using the template the site is currently working with?
- Add a Custom Field in Comment Box next to the Text area
- Pull comments from one page/post into another page/post?
- Pass PHP variable to javascript
- How to remove WordPress Default Comment? not Facebook
- How to prevent redoing get_posts queries and make results available to other scripts?
- how to do Thematic like this website using wordpress?
- Paginated Comments “reply” does not work!
- show Visual form builder in the front end
- Why links are not linked if edited comment?
- How to make a Template page to show the information of different things Shop and Product page?
- How to provide page_template path in custom plugin using WordPress
- Include theme header and footer in custom plugin
- How to Show Author image and url in WordPress plugin directory? [closed]
- How to add filter for wordpress plugin?
- WordPress API functions not working at AJAX functions.php call
- What’s the right way to implement functions in footer.php
- How to add category and subcategory in WordPress custom code?
- Do rewrites added with add_rewrite_rule() persist after plugin deletion?
- Custom form not showing in correct place on page
- WordPress plugin: efficient way to store large data
- Displaying data from another database
- Should meta boxes for specific pages be save in their own plugins?
- Call a function for social sharing
- What is necessary to secure a WP plugin against direct file access attempts?
- How to add img into a plugin?
- Calling a class method instantiated by ajax call in wordpress [closed]
- Custom CSS not being added by plugin
- Plugin generated unexpected output – No PHP errors
- Don’t load the theme for a page FROM a plugin EDITED
- Extending a theme: build new features as plugin or core modules?
- How to set the default value as the saved value once a form of widget is saved?
- Plugin generating unexpected output – on WP mysql dump import
- Ajax Call in page theme not working?
- Remember the Meta Value With Radio Buttons
- How to use add_action for multiple instances of the same class
- reCAPTCHA on page template without plugin
- jQuery code didn’t run on my plugin
- Woocommerce – Change Variable Product Add to Cart to behave like external product using Custom Field (link) [closed]
- How to check homepage contain blog post?
- Plugin option default value
- The Events Calendar Plugin – List View Background Colour Issue [closed]
- Every time I de-activate a custom plugin, the site encounters a critical error
- Display my plugins content based on a pages post_id
- How to edit link for comment count
- Create “new pages” within the admin section of plugin
- A question of etiquette when forking a plugin? [closed]
- how to request a script more than once in wordpress
- Select Form Element Not Saving from Plugin Options
- why the wp_register_script doesn’t work for register_activation_hook
- The “Child Pages Shortcode” plugin, block template
- My widget won’t update its values when save is clicked
- How to log custom plugin error to debug.log file
- Quick press publish post hook
- Prevent plug-in scripts on a specific template?
- How do you create a re-useable HTML fragment in wordpress
- using wp_footer hook in a plugin
- Error: Can´t access facebook comment plugin admin page
- Next Previous Post in wordpress with previous / next link with title?
- How to use existing hook in twentytwelve to all theme of wordpress?
- WordPress Feed Creator Name Tag Full Name Instead Of First Name
- count the number of views of a post excluding own views
- How to get a notification when the plugin is installed?
- Separate jQuery for Individual Comments?
- Does WordPress check for updates of a plugin via plugins root folder name?
- WordPress plugin with its own “site”/theme
- Delete data from custom table when deleting a post
- How To Create A File Archive in WordPress?
- How to embed a new string in url?
- Different registration form for different roles
- Structuring function with registration_errors hook
- Disable plugin visibility at the plugin directory
- Plugin is creating posts twice
- How can i listing current category and Featured Category post list?
- How can i list random author?
- Our plugin tags not appearing in WordPress Plugin Repository