Title: Plugin won&#8217;t read my code.
Last modified: November 27, 2019

---

# Plugin won’t read my code.

 *  [LesTexas60](https://wordpress.org/support/users/lestexas60/)
 * (@lestexas60)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/plugin-wont-read-my-code/)
 * I really like the concept of this plugin but I’m having issues getting it to 
   save without an error. I run my PHP code through multiple test sites and they
   say it is fine but when I load it into the plugin and try to save, I keep getting
   a error near the bottom . I’m running PHP 7.3. Here is my code:
 * $currentpage = $_SERVER[‘REQUEST_URI’];
    if(“/page-6/”==$currentpage) { function
   mytheme_custom_excerpt_length( $length ){ return 30; } } elseif (“/page-5/”==
   $currentpage) { echo “Have Good”; function mytheme_custom_excerpt_length( $length){
   return 10; } } elseif (“/page-4/”==$currentpage) { echo “Have Good”; function
   mytheme_custom_excerpt_length( $length ) { return 10;
 *  }
    }
 * add_filter( ‘excerpt_length’, ‘mytheme_custom_excerpt_length’, 999 );

The topic ‘Plugin won’t read my code.’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/my-custom-functions_0e1030.svg)
 * [My Custom Functions](https://wordpress.org/plugins/my-custom-functions/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/my-custom-functions/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/my-custom-functions/)
 * [Active Topics](https://wordpress.org/support/plugin/my-custom-functions/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/my-custom-functions/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/my-custom-functions/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [LesTexas60](https://wordpress.org/support/users/lestexas60/)
 * Last activity: [6 years, 6 months ago](https://wordpress.org/support/topic/plugin-wont-read-my-code/)
 * Status: not a support question