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

Can’t create tables with my plugin

All of your create table commands must be in uppercase in order for it to work with dbDelta(). It’s “picky”.

Categories plugins Tags mysql, plugin-development, plugins, table

How do i remove the title from a specific page

You could target the ID of the page in the database. It is also passed as a 2nd parameter to the function. Assuming your ID to be “1234”, the code becomes add_filter( ‘the_title’, ai1ec_remove_title, 10, 2 ); function ai1ec_remove_title( $title, $id ) { if( 1234 == $id ) { return ”; } else { return … Read more

Categories plugin-development Tags filters, plugin-development, title

Remove Permalink Meta Box not working?

I ran into this issue recently on a site that I was modifying for a client. The solution that worked for me was to set a ridiculously high priority for my action hook, like so: add_action( ‘add_meta_boxes’, ‘mjp_edit_meta_boxes’, 999 ); This ensures that the action is executed at the very end of the chain after … Read more

Categories plugin-development Tags functions, plugin-development, wp-admin

My plugin won’t create table in wordpress 3.5

First of all I want to reference you to the WP codex article about Creating or Updating the Table with Plugin. Note that the dbDelta function is rather picky, however. For instance: You must put each field on its own line in your SQL statement. You must have two spaces between the words PRIMARY KEY … Read more

Categories plugin-development Tags plugin-development

Custom characters of tinymce editor are saved as question mark

You have to encode the string you store in UTF-8 or whatever the site is using as encoding. If you don’t store valid UTF-8 you get the famous diamonds. In websites, these are not girls best friends, they just break your output. 🙂 See this answer for some code to encode text as UTF-8 in … Read more

Categories plugins Tags plugin-development, plugins, tinymce

Insert specific information to a posts of a predefined category

You shouldn’t inject postinfo() in the <head> section (that’s what happens when you use the wp_head hook). If you do not want to edit templates, I’d suggest you use the wp_footer hook instead, and append the postinfo to your header div with jQuery, e.g.: $(‘.post-info’).appendTo(‘#header’);

Categories posts Tags javascript, plugin-development, posts

How can I prevent ‘500 internal server error’ because of a long install process?

Are your database tables using the InnoDB engine? If so, and the plugin is just for your website, start a transaction, run the inserts, commit the transaction (or rollback on error). global $wpdb; $wpdb->query(‘start transaction’); // do the inserts $wpdb->query(‘commit’);

Categories plugin-development Tags 500-internal-error, plugin-development

Our plugin tags not appearing in WordPress Plugin Repository

There was an attack yesterday on WP servers, make a small push and try again. First, run the readme validator and make sure yours matches as much as possible the official example.

Categories plugins Tags plugin-development, plugins, readme

AJAX request not routing through proxy

If your AJAX is a ‘post’, or for that matter any protocol, to URL2PNG the client is doing so directly. The client isn’t aware of, nor would it honor you server’s proxy configuration. Considering the brief read of URL2PNG docs, placing your API key and password in your JavaScript/jQuery is risky at best since you’d … Read more

Categories plugin-development Tags ajax, plugin-development, proxy, wp-remote-get

How to close tinymce inline popup

I figured it out. The window which was opened had to call the tinyMCEPopup.close() in its own scope. Which also meant I had to include the tiny_mce_popup.js script as well.

Categories plugin-development Tags plugin-development, plugin-tinymce, tinymce
Older posts
Newer posts
← Previous Page1 … Page290 Page291 Page292 … Page698 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