Just drop this simple PHP snippets at end of functions.php file. It will fetch all unapproved entries from database. <?php //* Don’t include this line /** * Displaying unapproved entries * * @author Paul * @license GPL2.0+ */ add_filter(‘gravityview_get_entries’, ‘paul_awaiting_approval’, 1001, 3 ); function paul_awaiting_approval($parameters, $args, $form_id ) { $parameters[‘search_criteria’][‘field_filters’][] = array( ‘key’ => GravityView_Entry_Approval::meta_key,… Continue Reading
Archives for May 2018
Update Price Automatically When Quantity Changes on Click
I built a order form using WordPress Contact Form 7 plugin. I’m wanting to update the price automatically when quantity field’d value is changing on mouse click or key press. See the animated image file. You can understand the requirement. I added the simple JS code into my js file. Assume your quantity field name… Continue Reading
Fixing JS Conflict Issue between Older BB plugin & WP 4.9.6
This tutorial will show how you will resolve JS conflicting issue between older version of BB plugin & WP 4.9.6. If you are not renewing the license of Beaver Builder plugin then this trick will help you. But I shall recommend that you will stick with Beaver Builder plugin and renew/buy your own license. Here… Continue Reading
Changing Website URL in WordPress
This tutorial will show you how you will change the old site URL with new site URL in WordPress. It is very easy job. Anyone can do this in 30 mins. Here is the steps for it: Update wp-config.php file via FTP/CPanel Connect to your server with FTP or CPanel. Download the wp-config.php file and… Continue Reading
Adding Custom Column at WooCommerce Order List Table
I am running a membership site and wanting to add an new column at my order listing table (WordPress Dashboard). I shall show the member’s age at that column. Here is my steps for this functionality: Creating Custom Field I’m saving the Date of Birth of my customers as a custom field data. I’m using WordPress’s… Continue Reading
Fixing PHP fatal error of WooCommerce Predictive Search Plugin
I updated the old version of WooCommerce Predictive Search Plugin with latest version and it produced the PHP fatal error: Parse error: syntax error, unexpected ‘.’, expecting ‘,’ or ‘;’ in /htdocs/wp-content/plugins/woocommerce-predictive-search/admin/admin-ui.php on line 37 I thought that Plugin’s files are not updated properly. So I downloaded the latest version from WordPress repository and uploaded the… Continue Reading
Retrieving Admin Password using PHPMyAdmin
This method is requiring when you are unable to reset the password from WordPress login page. Personally I am following this techniques: At first I am installing the fresh WordPress at my localhost and creating the administrator account. Later I am opening the localhost’s phpMyAdmin and copying the password from wp_users table (image attached). Now… Continue Reading
Enabling the avatar in custom comment types
Few days ago I worked on a project. Client was wanting extra two new types (review & question) at comment form. All things implemented successfully. Only problem was that avatar for review/comment type was not coming at frontend & backend. I researched too much and got that avatar is allowed for comment type only. But… Continue Reading