Questions the author answers
When does this plugin replace spaces?
Plugin works when viewing the content and does not modify your content.
I have a problem with the plugin, or I want to suggest a feature. Where can I do this?
You can do it on Support Threads, but please add your ticket to Github Issues.
How to use this plugin on the custom field?
Use orphan_replace filter. Example code:
$value = apply_filters( 'orphan_replace', get_post_meta($post_id, 'meta_key', true ) );
How to use this plugin on any string?
Use orphan_replace filter. Example code:
$value = apply_filters( 'orphan_replace', 'any string' );
How to change plugin capability?
By default to using this plugin you must have manage_options capability, which usually means site administrator. If you want to allow manage Orphans by “Editors” then you need to use other capabilities, e.g. unfiltered_html. You can use iworks_orphans_capability filter:
add_filter('iworks_orphans_capability', 'my_orphans_capability'); function my_orphans_capability($capability) { return 'unfiltered_html'; }
How to turn of replacement in my piece of code?
At the beginning of your block just add:
add_filter( 'orphan_skip_replacement', '__return_true' );
and at the end, to again turn on replacements:
remove_filter( 'orphan_skip_replacement', '__return_true' );