Change display of product price on product show page only

I want to change the way prices are displayed on the product show page for all product that match the criteria. I have the following code: function sv_change_product_price_display() { global $product; // $product = wc_get_product( $post->ID ); if ( $product->is_type( ‘variable’ ) ) { if( has_term( ‘joint’, ‘product_tag’, $post->ID) ){ return $price; } if( has_term(…

“Additional CSS” data keeps reverting back to default example, multiple rows in database created

Not really sure the best way to word this. WordPress stores the CSS in Customizer->Additional CSS in the wp_posts table, with the post_type set to ‘custom_css’ and the post_name set to the theme slug. Example: | post_id | post_content | post_name | post_type | | |———|——————————————————————————-|————|————|—| | 1 | /* You can add your own…

Add an extra field to BuddyPress activity form

I want to add a custom text field in the BuddyPress activity form and save it. I can add it with this code: add_action ( “bp_after_activity_post_form”, ‘my_test_function’ ); function my_test_function(){ echo ‘<div id=”tags-content”> <input type=”text” name=”tags” value=”” /> </div>’; } How can I save it? I’m trying this, but it never goes to it. add_action(‘bp_activity_after_save’,…