I’d be interested in this too. It would be great to be able to share sales data or successful marketing strategies outside of a forum where everyone can see.
The best part about sublime is it’s just so fast. Brackets still seems super laggy to me. For a code editor that’s mostly what you’re looking for anyway.
My items are supported via an external URL, but nothing is shown on the comments notification. Is it possible to have a link to the support forum in the notification? Like this:
Right now it looks like this:
There’s no information about my support forum – it’s misleading and seems as though I offer support through item comments (I do not). Why is this information missing?
Edit: Scratch that – it looks like the notification changes if/when the user purchases the item.
You can validate html if you want using WordPress’ wp_kses function, although it’s not super performant. I believe you could do something like this:
$text = ot_get_option( 'text_option' ); // From Theme Options $class = ot_get_option( 'class_option' ); // From Theme Options $output = '<span class="' . sanitize_html_class( $class ) . '">' . $text . '</span>'; echo wp_kses( $output, // Only allow <span> with class array( 'span' => array( // Here, we whitelist 'class' attributes - nothing else allowed! 'class' => array(), ) ) ); </span>
This is better for storing data in the database not during output sanitization because of the performance hit. However, on a short amount of content isn’t too bad:https://www.tollmanz.com/wp-kses-performance/
If you go the route of escaping in final output (probably recommended), I would use WordPress’ sanitize_html_class function for the class variable as it’s more appropriate:
$text = ot_get_option( 'text_option' ); // From Theme Options $class = ot_get_option( 'class_option' ); // From Theme Options <!--- somewhere in the html structure ---> <span class="<?php echo sanitize_html_class( $class ); ?>"><?php echo esc_html( $text ); ?></span>https://codex.wordpress.org/Function_Reference/sanitize_html_class