Skip to content

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

api

How to create an API for my plugin?

August 4, 2022August 3, 2022 by Magenaut

I have been developing plugins for WordPress, most plugins I have developed use two or three classes, hence not as huge as Buddypress or WooCommerce.

Categories Q&A, Wordpress Tags actions, api, customization, filters, plugin-development Leave a comment

Programmatically add a Navigation menu and menu items

August 4, 2022August 3, 2022 by Magenaut

Through API functions, I want to define a new Navigation menu, select it in the current theme, and then insert a few Pages as menu items. This is to be done for instance on a theme activation.

Categories Q&A, Wordpress Tags api, menus, navigation Leave a comment

How to store username and password to API in wordpress option DB?

August 4, 2022August 3, 2022 by Magenaut

I’m currently developing a plugin and the chances are that I will more than likely release it on the public plugin repository so others can use it.

Categories Q&A, Wordpress Tags api, encryption, plugin-development, security Leave a comment

Query WP REST API v2 by multiple meta keys

August 4, 2022August 3, 2022 by Magenaut

Using v2 of the REST API, I’m wanting to query some posts by multiple meta keys. With v1 I was able to format the url like &filter[meta_value][month]=12&[meta_value][year]=2015 and it worked (after exposing the meta values to the API).

Categories Q&A, Wordpress Tags api, filters, meta-query, rest-api, wp-api Leave a comment

WP Rest API – How to get featured image

August 4, 2022August 3, 2022 by Magenaut

I’m very new to this API, in fact I’ve only spent couple hours on it so far. I’ve done my research but cannot find anything about it…

Categories Q&A, Wordpress Tags api, javascript, json, plugin-json-api Leave a comment

Set up WP Authentication from External API

August 4, 2022August 3, 2022 by Magenaut

There’s an existing non-WP site, and I need their users to be able to log in on my new WordPress site with the same credentials they already have.

Categories Q&A, Wordpress Tags api, authentication Leave a comment

How do I create a widget that only allows a single instance?

August 4, 2022August 3, 2022 by Magenaut

How do I create a widget that only allows a single instance of a widget to be added through the WordPress interface?

Categories Q&A, Wordpress Tags api, customization, single, widgets Leave a comment

How to get all posts (in chunks) via XML-RPC?

August 3, 2022August 2, 2022 by Magenaut

I would like to retrieve all posts of a blog via the XML-RPC API of WordPress.

Categories Q&A, Wordpress Tags api, xml-rpc Leave a comment

Customizer JS API: Defining control settings

August 2, 2022August 1, 2022 by Magenaut

I am trying to create Customizer controls using JS API. What is a proper way to define control settings?

Categories Q&A, Wordpress Tags api, javascript, theme-customizer Leave a comment

I Want to Get A Plugin Version Number Dynamically

August 2, 2022August 1, 2022 by Magenaut

Howdy, I recently cribbed W3TC to implement an “in-update” changelist display (very cool), in my plugin, but there’s an awkward bit of code I’d prefer to avoid.

Categories Q&A, Wordpress Tags api, plugins Leave a comment
Older posts
Newer posts
← Previous Page1 … Page5 Page6 Page7 Next →
  1. michealSmith07 on Is there a way to dynamically refresh the less command?August 21, 2022

    That is a very nice post. I like this post.

  2. anonymous on Fix libwacom9 dependency issue when upgrade DebianJune 27, 2022

    saved my day!! Thanks for the help…

  3. sreedhar on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    Thanks its working

  4. saintnick on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    remove libwacom2 worked for me as well

  5. ranafoul on Fix libwacom9 dependency issue when upgrade DebianApril 22, 2022

    apt remove libwacom2 helped on kali 2022.01. gr8

.net ajax asp.net asp.net-core asp.net-mvc asp.net-mvc-3 asp.net-mvc-4 asp.net-web-api bash c# command-line css custom-post-types custom-taxonomy dataframe dictionary django entity-framework functions gridview html iis javascript jquery json linux list matplotlib numpy pandas php plugin-development plugins posts python python-2.7 python-3.x security shell shell-script sql string vb.net webforms wp-query

© 2026 Magenaut • Built with GeneratePress