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

plugin-development

WordPress Plugin, Elementor and the ReferenceError nightmare

WordPress Plugin, Elementor and the ReferenceError nightmare

Categories plugin-development Tags javascript, plugin-development

User set default settings for a Block in Site Editor

As far as I know the only way to get your block’s settings to show up in the Global Styles (so their defaults can be set) is by using the Supports API. It’s automatic if your block’s settings are implemented via Supports. Here it is from the docs: The global styles UI in the site … Read more

Categories plugin-development Tags block-editor, plugin-development, theme-development

how to send csv file to other server using wp_remote_post?

mirror issue in request body and headers ou can adjust your code to properly send the CSV file using wp_remote_post() The csv_file parameter is set to a CURLFile object, which represents the file to be uploaded. This should correctly include the CSV file in the request body. // Set up the request body $request_body = … Read more

Categories plugin-development Tags api, plugin-development, wp-remote-post

Is there a way to force plugins to use Flyway migrations for database changes?

Is there a way to force plugins to use Flyway migrations for database changes?

Categories plugin-development Tags database, migration, plugin-development, staging, version-control

Create child of child custom page in wp-admin

Create child of child custom page in wp-admin

Categories plugin-development Tags add-submenu-page, plugin-development, wp-admin

How to remove lazy-loading from first 6 images in WordPress?

You would do this by filtering the threshold to change it from the default 3 to 6 via wp_omit_loading_attr_threshold: See: https://developer.wordpress.org/reference/functions/wp_omit_loading_attr_threshold/ https://developer.wordpress.org/reference/hooks/wp_omit_loading_attr_threshold/

Categories plugin-development Tags plugin-development

How to run this plugin every time a post is saved?

After the advice from every awesome person who helped, I finally got it to work. I just had to define $the_content instead of trying to use the hook get_the_content() alone. Now it’s tagging everything perfectly. Here is the final code for anyone who wants to use it in the future. Or you can just download … Read more

Categories plugin-development Tags hooks, plugin-development, save-post, tags

Can we write custom DOM manipulation inside edit.js file while developing custom Gutenberg block?

I have doubts while creating a custom Gutenberg block are we allowed to directly manipulate DOM? Yes but not in the way you’ve done, that’s not how React code works. When a react component is no longer shown it ceases to exist, and the associated DOM node vanishes, along with all its event handlers. This … Read more

Categories plugin-development Tags block-editor, editor, plugin-development

Is there a way to decide from init whether we are on a certain backend page?

There are few functions/global variable in WP to determine is_admin() – For checking if in admin panel global $pagename – to get the page name of admin

Categories plugin-development Tags add-menu-page, pages, plugin-development

Can you nest columns/column in a gutenberg custom template?

I believe the cause of the problem has nothing to do with columns and nesting columns within columns,. The errors are related to the very first block added in the template and a mixup of the syntax used in the examples on wp.org when reproduced. If we clear up the indentation you’ll see that this … Read more

Categories plugin-development Tags block-editor, plugin-development, react
Older posts
Newer posts
← Previous Page1 … Page6 Page7 Page8 … Page409 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