Title: Error 403 for using wordpress functions
Last modified: April 1, 2019

---

# Error 403 for using wordpress functions

 *  Resolved [janlou](https://wordpress.org/support/users/janlou/)
 * (@janlou)
 * [7 years ago](https://wordpress.org/support/topic/error-403-for-using-wordpress-functions/)
 * Hi,
    In new update i can’t save any **older codes** (Php or Universal) I think
   this problem is for using **wordpress functions** in code, For examples:
 *     ```
       if ( is_user_logged_in() ) {
           $current_user = wp_get_current_user();
           if ( ($current_user instanceof WP_User) ) {
               echo get_avatar( $current_user->ID, 64 );
       	}
       }
       ```
   
 * After click on save button it returns 403 error page

Viewing 1 replies (of 1 total)

 *  Thread Starter [janlou](https://wordpress.org/support/users/janlou/)
 * (@janlou)
 * [7 years ago](https://wordpress.org/support/topic/error-403-for-using-wordpress-functions/#post-11393038)
 * Problem has been solved by downgrading wordpress version to 5.1

Viewing 1 replies (of 1 total)

The topic ‘Error 403 for using wordpress functions’ is closed to new replies.

 * ![](https://ps.w.org/insert-php/assets/icon-256x256.gif?rev=3475630)
 * [Woody Code Snippets – Insert PHP, CSS, JS, and Header/Footer Scripts](https://wordpress.org/plugins/insert-php/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/insert-php/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/insert-php/)
 * [Active Topics](https://wordpress.org/support/plugin/insert-php/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/insert-php/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/insert-php/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [janlou](https://wordpress.org/support/users/janlou/)
 * Last activity: [7 years ago](https://wordpress.org/support/topic/error-403-for-using-wordpress-functions/#post-11393038)
 * Status: resolved