Title: Deprecated: Optional parameter $level declared before required parameter
Last modified: April 15, 2024

---

# Deprecated: Optional parameter $level declared before required parameter

 *  [johnwhocking](https://wordpress.org/support/users/johnwhocking/)
 * (@johnwhocking)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/deprecated-optional-parameter-level-declared-before-required-parameter/)
 * I am getting the following warning messages:
 * **Deprecated**: Optional parameter $level declared before required parameter 
   $parent_id_array is implicitly treated as a required parameter in **/home/johnwhoc/
   aitoolcritic.com/wp-content/plugins/link-library/render-link-library-cats-sc.
   php** on line **17**
 * **Deprecated**: Optional parameter $onlycount declared before required parameter
   $linkcount is implicitly treated as a required parameter in **/home/johnwhoc/
   aitoolcritic.com/wp-content/plugins/link-library/render-link-library-sc.php**
   on line **314**
 * **Deprecated**: Optional parameter $parent_cat_id declared before required parameter
   $linkcount is implicitly treated as a required parameter in **/home/johnwhoc/
   aitoolcritic.com/wp-content/plugins/link-library/render-link-library-sc.php**
   on line **314**
 * **Deprecated**: Optional parameter $level declared before required parameter 
   $linkcount is implicitly treated as a required parameter in **/home/johnwhoc/
   aitoolcritic.com/wp-content/plugins/link-library/render-link-library-sc.php**
   on line **314**
 * **Deprecated**: Optional parameter $display_children declared before required
   parameter $linkcount is implicitly treated as a required parameter in **/home/
   johnwhoc/aitoolcritic.com/wp-content/plugins/link-library/render-link-library-
   sc.php** on line **314**
 * **Deprecated**: Optional parameter $hide_children_cat_links declared before required
   parameter $linkcount is implicitly treated as a required parameter in **/home/
   johnwhoc/aitoolcritic.com/wp-content/plugins/link-library/render-link-library-
   sc.php** on line **314**
   ChatGPT sayshe warning indicates that you have an optional
   parameter placed before a required one, which isn’t allowed as of PHP 8.0 and
   generates a deprecation warning.Is this something you plan to fix or do i need
   to attempt the fix myself?Thank you,John

The topic ‘Deprecated: Optional parameter $level declared before required parameter’
is closed to new replies.

 * ![](https://ps.w.org/link-library/assets/icon-256x256.jpg?rev=971117)
 * [Link Library](https://wordpress.org/plugins/link-library/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/link-library/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/link-library/)
 * [Active Topics](https://wordpress.org/support/plugin/link-library/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/link-library/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/link-library/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [johnwhocking](https://wordpress.org/support/users/johnwhocking/)
 * Last activity: [2 years, 2 months ago](https://wordpress.org/support/topic/deprecated-optional-parameter-level-declared-before-required-parameter/)
 * Status: not resolved