Overwrite user role

I don’t use this plugin for a while, don’t you need to customize the shortcode for each form, one should be role=”student” and the other one role=”employer”. You can also use the filter add_filter( ‘simplr_validate_form’, ‘my_simplr_validate_form’, 10, 3 ); A simple example, assuming the page for the registration is 1 for the student and 2 … Read more

How to add H1 Tag on Homepage?

For H1 Tag – “Top Shopping & Travel Deals”. Since you just want it static just adding <h1>Top Shopping & Travel Deals</h1> to a template is not hard. The likely hard part is determining which template is right place for it. You can consult with template hierarchy and check which templates theme has and which … Read more

Add a product attribute to permalink in WooCommerce

You can do like this, to append QUERY to permalinks (not base url): add_filter( ‘post_type_link’, ‘my_append_query_string’, 10, 4 ); function my_append_query_string( $permalink, $post, $leavename, $sample ) { if ( $post->post_type == ‘shop’ ) { if (get_option(‘permalink_structure’)){ $permalink = AddStringToUrl($permalink,’color=red’); } } return $permalink; } function AddStringToUrl($current_url, $string) { return $current_url . ( stripos($current_url, ‘?’) === … Read more