Skip to content
Read For Learn
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP

endpoints

Custom EndPoint not working when strip child category in URL

Disable the Canonical redirect will keep the code work: function disable_canonical_redirect_for_download_page( $redirect ) { if ( isset( $wp_query->query_vars[‘download’] ) || is_singular() ) { $redirect = false; } return $redirect; } add_filter( ‘redirect_canonical’, ‘disable_canonical_redirect_for_download_page’ );

Categories categories Tags categories, endpoints, link-category, permalinks

Securing REST API wp-json/wp/v2/users endpoint

Securing REST API wp-json/wp/v2/users endpoint

Categories rest-api Tags endpoints, rest-api, security

New endpoint that adds text to end of the file

New endpoint that adds text to end of the file

Categories endpoints Tags endpoints

wordpress url rewrite Query Var to Static url

Okay lets try this (didn’t want to put it “just as comment” because of the code. In your comment you gave still no answer on a “possible caching issue” but still. Maybe, just maybe this part of code in .htaccess could help. Be aware this code could mess up more then wished! (Please read what … Read more

Categories url-rewriting Tags endpoints, url-rewriting

Using WordPress.com API to retrieve featured images

Simple: Add ?_embed to the url query string. Eg: /wp-json/wp/v2/posts?_embed=true (_embed will work too ) You will then find a property within each post in the JSON called _embedded which will contain all the info you need for Featured Image. Also your taxonomies/categories/tags etc.

Categories media Tags endpoints, media, rest-api, wordpress.com-hosting

If YITH Wishlist page is set to the WooCommerce my-account endpoint, the endpoints stop working all together. Any solution?

Go to Woocommerce->Status->Create default WooCommerce pages Click button “Create pages” and they’ll renew. (Notice: before that, delete the Wishlist Page for the confidence.)

Categories woocommerce-offtopic Tags account, e-commerce, endpoints, shortcode, woocommerce-offtopic

How to Rewrite WordPress URL for a Plugin

Create an endpoint. In the callback function for the endpoint call your plugin functions internally, so the whole WordPress environment is available and you are still on the same domain, no matter where the plugin URL is. Plus, make sure not to flush the rewrite rules on every page load, use the (de)activation hook for … Read more

Categories plugin-development Tags endpoints, plugin-development, rewrite-rules, url-rewriting, urls

How to Rewrite WordPress URL for a Plugin

Create an endpoint. In the callback function for the endpoint call your plugin functions internally, so the whole WordPress environment is available and you are still on the same domain, no matter where the plugin URL is. Plus, make sure not to flush the rewrite rules on every page load, use the (de)activation hook for … Read more

Categories plugin-development Tags endpoints, plugin-development, rewrite-rules, url-rewriting, urls

Endpoint Callback Display for Custom Plugin

The code in the original question was on the right track. The code below was taken from the linked tutorial. Basically all I had to do was create a template file in my plugin (I just copied some code from single.php from my main theme to use as a guide into: dirname( __FILE__ ) . … Read more

Categories plugin-development Tags endpoints, plugin-development

How to use a RewriteRule to change endpoint url

You should just need to change the permalink of the page in the back end of WordPress. You may also need to add the short code [woocommerce_my_account] to the page content depending on your version of WooCommerce. This would however also change the account page from my-account to just account aswell.

Categories url-rewriting Tags endpoints, url-rewriting, woocommerce-offtopic
Older posts
Newer posts
← Previous Page1 Page2 Page3 … Page15 Next →
+ More

Recommended Hostings

Cloudways: Realize Your Website's Potential With Flexible & Affordable Hosting. 24/7/365 Support, Managed Security, Automated Backups, and 24/7 Real-time Monitoring.

FastComet: Fast SSD Hosting, Free Migration, Hack-Free Security, 24/7 Super Fast Support, 45 Day Money Back Guarantee.

Recent Added Topics

  • Bug in translation system: load_theme_textdomain() returns true, files are available and accessible but the language defaults to english
  • Post Navigation Elementor
  • Custom Elementor controls not appearing in the widget Advanced tab using injection hooks
  • WPFacet multiple loop displaying duplicate content
  • Get the name of the template/*html file used
  • Fix: WordPress.DB.PreparedSQL.NotPrepared Plugin Check (PCP)
  • Removing unnecessary CSS and JS code from wp_head()
  • hexagonal image gallery. Am I on the right track? [closed]
  • Trying to Add Paging to Single Post Page
  • Sharing media files between live and staging servers
© 2026 Read For Learn
Next Page »
  • Database
    • Oracle
    • SQL
  • algorithm
  • asp.net
  • assembly
  • binary
  • c#
  • Git
  • hex
  • HTML
  • iOS
  • language angnostic
  • math
  • matlab
  • Tips & Trick
  • Tools
  • windows
  • C
  • C++
  • Java
  • javascript
  • Python
  • R
  • Java Script
  • jQuery
  • PHP
  • WordPress