• Resolved tea23hah

    (@tea23hah)


    Hi there,

    can you explain what the difference in plugin/inc/funtions.php file is between the srm_max_redirects on line 28 and the srm_max_redirects on line 88?

    Which is the one you have to increase in order to be able to create more rules?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi @tea23hah,

    They’re the same filter. You can use that filter to create more than 250 redirect rules. For example:

    
    add_filter( 'srm_max_redirects', function() {
        return 400;
    } );
    
    Thread Starter tea23hah

    (@tea23hah)

    So what’s their different purpose in each line?

    Regarding the filter you suggested, that should be pasted in the functions.php file of the theme?

    • This reply was modified 4 years, 6 months ago by tea23hah.

    Those lines belong to two functions that use max redirects data in the logic, one gets redirects from the database, and the other checks if the total redirects reach the max amount or not.

    And yes for your second question, the snippet I posted above should be placed in functions.php of the active theme.

    Thread Starter tea23hah

    (@tea23hah)

    Thank you!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘What’s the difference between the two srm_max_redirects’ is closed to new replies.