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

api

How do I perform a “get” call to an external API, and then display the JSON results on a page in my WordPress site?

Ended up developing a plugin using AJAX to make the calls to the API

Categories customization Tags api, customization, json, membership, plugin-json-api

Looking for a solution – slightly convoluted problem

Looking for a solution – slightly convoluted problem

Categories plugins Tags api, google, plugins, shortcode

Options to get my custom post type metadata via the WordPress API

You should use register_meta to add the meta field to the rest controller. Here the example from the link to expose the field my_meta of the custom post type my_article: register_meta(‘post’, ‘my_meta’, [ ‘object_subtype’ => ‘my_article’, ‘show_in_rest’ => true ]);

Categories post-meta Tags api, json, metabox, post-meta, rest-api

How to send data from a form created by a plugin to an external API?

How to send data from a form created by a plugin to an external API?

Categories hooks Tags api, forms, hooks

Create or Update thousands of woocommerce products via PHP

Create or Update thousands of woocommerce products via PHP

Categories plugins Tags api, php, plugin-development, plugins, woocommerce-offtopic

Programmatically trigger the gutenberg save

Have you tried using savePost? https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/#savepost

Categories block-editor Tags api, block-editor

What is the best way to move a plugin´s subdirectory+files to wp-content/uploads-directory?

Line 756 is $dirlist = $wp_filesystem->dirlist($from);. The argument is ok. I think that the object $wp_filesystem is not globally available for your plugin.

Categories plugins Tags api, directory, filesystem, plugins, wp-filesystem

wp_insert_comment error. puzzled by date value

It turns out that we need to get a date string from our DateTime object and pass that into the comment_date parameter instead. $comment_date = $the_date->format(‘Y-m-d H:i:s’);

Categories comments Tags api, comments

I am trying to use the Theme Customization API but I keep getting an error

I’m still relatively new to WordPress Development, but shouldn’t this code be in customizer.php, in the “inc” folder(which would be within your active theme’s folder)? Also I know the codex says this particular code is just for the live preview, but after adding it in one of my projects it seemed to fix my issue. … Read more

Categories api Tags api, theme-customizer

Custom Connect to Facebook, problem logging in/logging out

The tutorial from the link I provided was destroying the facebook session after login in and creating a new account for some reason. I just had to remove $facebook->destroySession(); from both parts and now everything is working as intended. Here is the code from the tutorial with both lines commented out. if ($fbuser) { $fb_registerpage_name … Read more

Categories login Tags api, facebook, login, logout, session
Older posts
Newer posts
← Previous Page1 … Page61 Page62 Page63 … Page82 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
  • Custom Elementor controls not appearing in the widget Advanced tab using injection hooks
  • Get the name of the template/*html file used
  • Trying to Add Paging to Single Post Page
  • Sharing media files between live and staging servers
  • How to display the description of a custom post type in the dashboard?
  • Critical error on image display
  • Copying WP data and files into new install?
  • How to determine the DirectAdmin WordPress backup date?
  • How to get list of ALL tables in the database?
© 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