Adding Visibility Options

I’ve actually done this before with a custom page template rather than with the visibility options … because both logged in and not logged in users ended up going to the same page. Here’s some pseudo-code (i.e. do not actually use the code, but it will give you an idea) $logged_in = is_user_logged_in(); switch($logged_in) { … Read more

Environment Specific Options Token

See the filter reference on the codex. In particular, note that you can use the form option_$foo to filter just a specific option key. So if you wanted a filter specific to the siteurl option, you could do: add_filter( ‘option_siteurl’, ‘my_url_filter’ );

Cannot strip JW Player shortcode?

JW Player Plugin for WordPress does not register its shortcode like all other shortcodes, so strip_shortcodes() will not know about it and not strip it. In the code there is a note that this is because it uses argument names with a . in it, and WordPress does not support this. There are probably multiple … Read more