Articles of plugins

Scrape a webpage for image and add it to post

I was wondering if there was a way to scrape an external webpage for its first/best image and add it to a new post in WordPress. This seems like it would not be too complicated, but I can’t seem to find any existing plugins that do anything like to this. I know there are plugins […]

what is the point of telling add_filter how many parameters you want passed to the function?

In wp-includes/plugin.php (apply_filters) there’s this: foreach( (array) current($wp_filter[$tag]) as $the_ ) if ( !is_null($the_[‘function’]) ){ $args[1] = $value; $value = call_user_func_array($the_[‘function’], array_slice($args, 1, (int) $the_[‘accepted_args’])); } So if you do 9999 the function will get past more arguments than it needs? How is that a problem? If you don’t need the arguments don’t put them […]

Disallow: /wp-* in robots.txt?

I have just received an email from Google advising that it can’t accessing certain javascript and css content from my site. I’ve looked at the robots.txt file which contains: User-agent: * Crawl-delay: 5 Disallow: /feed/ Disallow: /trackback/ Disallow: /wp-admin/ Disallow: /wp-includes/ Disallow: /xmlrpc.php Disallow: /wp-* It looks like it is the Disallow: /wp-* that is […]

I would like to remove date display on photo preview

I have a web site and in the image preview of the posts, when I display images, there is a date displayed by the website and I would like to remove it. I’ve looked in the wordpress config but I haven’t found anything so I think I have to take a look at the code […]

How Should Custom Functions Be Called For Single Posts?

I have been trying to find the answer to this. I want to use the best method performance wise, but also want to make this solution portable as possible. I have created a plugin that adds multiple post types and custom meta fields for each of these post types. Reviews is an example of this. […]

woocommerce with custom post type

I create new post type suppose “custom_type” and i want to use that post type with Woocommerce function. so Woocommerce will work with “product and custom_type”. i searched everywhere and don’t find any answer also i have found how to customize current post type names etc but i want both post type. so both post […]

Trying to make a simple wordpress plugin, having difficulties understanding how to make it?

I am currently trying to develop a simple wordpress plugin for a client, but am having issues with how complicated wordpress makes its APIs and plugins. The code so far: add_action(‘admin_menu’,’pagePluginMenu’); function pagePluginMenu() { $appName = ‘Page Rebrander’; $appID = ‘page-rebrander’; add_menu_page($appName,$appName, ‘administrator’, $appID . ‘-top-level’, ‘pluginAdminScreen’); } function pluginAdminScreen() { $data = ‘<textarea rows=”50″ […]

How to find the Registration page

I am managing the WordPress website i don’t have the document of the website my problem is the website has the registration page please see [this link] but when i check the registration page in WordPress admin the page is blank i don’t have any idea how the previous developer linked the page can anyone […]

Approve users posts before publish

I use of post type plugin which I’ve made for my website and that’s allow users publish their posts in one of my two different post-types, but I need to make my post-type posts publish only when admin approve them currently they will publish directly without any checks before. If is necessary for you to […]

Custom Post Type Plugin not loading category template and loading 404 instead

I have been looking around for the past few hours and I am starting to be kind of desperate… I have created a plugin to add my custom post type “project” (making a new portfolio)… In this plugin, I have the function file, and a template file single-project.php and also a template part folder with […]