TWIR
Forum Replies Created
-
Forum: Plugins
In reply to: [Expire Users] Can you set this plugin to only expire certain roles?Did you ever find a way to do this? I am pretty sure you can using the expire users hook just I am unsure of the logic for it to work.
https://github.com/benhuson/expire-users/wiki/expire_users_expired
<?php
function my_expire_users_expired( $user ) {
/*
$user is an instance of the Expire_User object
The user’s ID is $user->user_id
*/
}
add_action( ‘expire_users_expired’, ‘my_expire_users_expired’ );
?>Basically you need to write the logic to be when a user expires it moves them to the new user role and sets them to never expire.
This is what I did which seems to work fine. Just throw it in the Callback Settings part
$(window).on('ajaxComplete', function() { (adsbygoogle = window.adsbygoogle || []).push({}) });
Forum: Plugins
In reply to: [WooCommerce Show Attributes] HTML Attribute ValuesSo I got it to work on the front end. My problem now is with the back end. Looks like woocommerce will not allow attributes with html in them. Any clue where that might be located?
Forum: Plugins
In reply to: [WooCommerce Show Attributes] HTML Attribute ValuesSorry for the old bump, but is there a way to just woocommerce from stripping the html. Earlier versions of woocommerce seemed to be fine with it.
Forum: Plugins
In reply to: [WooCommerce] HTML In AttributesAnyone?
Forum: Plugins
In reply to: [WooCommerce] HTML tags in WooCommerce custom fieldsI know this is an old post but cant you remove the escaped html code on the product attributes page?
I would assume this area would need to be changed in product-attirbutes.php.
if ( $attribute->is_taxonomy() ) { $attribute_taxonomy = $attribute->get_taxonomy_object(); $attribute_values = wc_get_product_terms( $product->get_id(), $attribute->get_name(), array( 'fields' => 'all' ) ); foreach ( $attribute_values as $attribute_value ) { $value_name = esc_html( $attribute_value->name ); if ( $attribute_taxonomy->attribute_public ) { $values[] = '<a href="' . esc_url( get_term_link( $attribute_value->term_id, $attribute->get_name() ) ) . '" rel="tag">' . $value_name . '</a>'; } else { $values[] = $value_name; } } } else { $values = $attribute->get_options(); foreach ( $values as &$value ) { $value = esc_html( $value ); } }