[OFFER ALERT!] This Halloween, Get Any Premium Theme for Just $19 [GET IT NOW]
Jump to content

[WP Review Pro] Available hooks/filters?


jezthomp
 Share

Recommended Posts

Hello.

I'm just wondering how flexible it is when displaying the content on the front end of the site?

For example, i would like to change the structure of the reviews, so the ratings list appears separately to the overall average score and then bespoke style them to the particular theme.

How achievable is this, with hooks or child theme files perhaps?

Link to comment
Share on other sites

Hello,

That can be achieved easily using child theme files. Please create a new "wp-review" folder in your (child) theme directory, and then copy the following file in the new folder: wp-review-pro/box-templates/default.php. That is the template file for the review box, you can make edits in it, and the one in the child theme folder will override the default one in the plugin directory, so the customizations will be kept even if you update the plugin.

You can also find a list of available filter hooks with examples in the filter-list.php file, inside the plugin folder.

Hope that helps. If you have any question, please feel free to ask. Thank you.

Link to comment
Share on other sites

Is it possible to remove aspects of the meta box within the admin area as i want it controlled via the site wide options only; specifically the....

Custom Location
Custom Colors

Something like.

add_filter( 'wp_review_render_meta_box_item', 'remove_meta' );
function remove_meta( $fields ) {

	if ( isset( $fields['location'] ) )
		unset( $fields['location'] );

	return $fields;
}

 

Link to comment
Share on other sites

  • Support

Hello,

Yes, you can control them also.

If you are facing some issues with that, after purchasing the plugin, please start a new ticket under the Premium Plugin section so that we can help you better in this matter.

Hope that helps.

Thank you.


🏁Rank #1 on Google With our WordPress SEO Plugin.

Score a 💯on PageSpeed and Dominate Search Rankings.

✏ Editing theme files? Please create a child theme to make your changes update-proof.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...