Articles of plugins

How to Show Author image and url in WordPress plugin directory?

I just added a plugin(My-auction-creator) in to WordPress Plugin directory. But sadly when I open the plugin URL the author image is not showing nor the url is linked. So anyone can help me to show my image and url there? Below the screenshot: Here is the link :

Hook for altering the content of all wp mails

Hi i want to set email template for all mails for my site . I know how to set up mail template and i set mail template for each of my mail by editing the code ie wp_mail( $recipient, $subject, $body, $headers, $attachments ); is mail code then i replaced it with ob_start(); require_once (get_template_directory() […]

Problem after updating plugins

So today i updated my plugins, everything went smoothly, but later i found out that my website is messed up. All the custom taxonomies are gone, then one of my plugin disappear somehow. I tried to reinstall the plugin, but i got this error Installing Plugin: WordPress SEO by Yoast 2.2.1 Downloading install package from […]

How to add filter for wordpress plugin?

I have a really newbie question, but I’m really new to WordPress development. In the plugin that I’m using is using this filter. if ( true === apply_filters( ‘some_custom_filter’, false ) ) { return $something; } Now I’d like to add_filter so it will return true how do I achieve that? This is what I’m […]

Set post tags using tag ID

I want to set post tags to a new value. Is there a way to use the tag ID to do it? The wp_set_post_tags only accepts the tag name or an array of tag names. <?php wp_set_post_tags( $post_ID, $tags, $append ) ?> The reason why I want to set the tag using the ID is […]

Can i use init hook for API purpose?

My question title might be little confuse. Here is the scenario, For example: I am giving an API service from my wordpress site. Using it others can know few information. Like if they send a User ID in query URL then i’ll send them user phone number. For Example: If they access the site with […]

Call Ajax URL in Plugin

Plugin Class File: function __construct() { add_shortcode(‘user_registration_form’, array($this, ‘shortcode’)); } public function hook(){ add_action( ‘wp_ajax_get_product_serial_callback’, ‘get_product_serial_callback’ ); add_action( ‘wp_ajax_nopriv_get_product_serial_callback’, ‘get_product_serial_callback’ ); } public function product_serial_ajax() { ?> <script type=”text/javascript”> jQuery(document).ready(function(){ alert(‘Hello World!’); jQuery.ajax({ type: ‘GET’, url: “<?php echo admin_url(‘admin-ajax.php’); ?>”, //url: ajaxurl, dataType : “JSON”, data : {action: “get_product_serial_callback”}, //cache: false, success: function(data){ alert(‘Eureka’)’; } […]

Can't update/install plugins or WordPress

I just finished setting up WordPress on my apache webserver, but now I’m having this problem which is pretty much preventing me from doing anything with my site. Whenever I try to install or update a plugin I always get the following error: Username/Password incorrect Which I know cant be possible because Im providing the […]

Embed a Google Sheet as you view it in a separate tab?

Is it possible to embed a Google Sheet as you view it in a separate tab like in this website? I have tried to use Publish to the web or the plugin Inline Google Spreadsheet Viewer but it just embed a simple sheet. My file has various sheets and lots of data so it will […]

What makes it possible for a plugin to not able to delete?

When I tried to delete a custom-made plugin, the admin wordpress page became a plain white screen with no error messages. What causes this to happen?