Support » Plugin: Simple Text Replace » Can i use more than 10 words?

Viewing 2 replies - 1 through 2 (of 2 total)
  • I think this is possible as I’ve just had a play around in the PHP and seem to have done this by adding two more rows to the settings page.

    If you go into Plugins > Editor and find the plugin in the dropdown list you will need to make three changes:

    include_once(‘simple-text-replace_hooks.php’);
    if(get_option(‘str_title_enabled’)){
    if(get_option(‘str_content_enabled’)){

    include_once(‘simple-text-replace_options.php’);
    // Title replace
    // Text replace

    check_regex(‘title’, ’10’);
    check_regex(‘content’, ’10’);

    There are two PHP files involved and the lines to look for are above, one for the title section and one for the post section. They’re pretty easy to spot as they are big blocks of repeating code and you just copy and past the bottom one and change the number from 10 to 11, 12, etc.

    I hope this helps somebody.

    Plugin Author dben

    (@dben)

    Hello, I’m the author of the plugin.
    Sorry for the delay, fortunately ritso gave you the right answer:

    you have to add the options (simple-text-replace_options.php) and apply the regex (simple-text-replace_hooks.php).

    Regards,
    daniele

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Can i use more than 10 words?’ is closed to new replies.