Title: Devin Blewitt's Replies | WordPress.org

---

# Devin Blewitt

  [  ](https://wordpress.org/support/users/devinblewitt/)

 *   [Profile](https://wordpress.org/support/users/devinblewitt/)
 *   [Topics Started](https://wordpress.org/support/users/devinblewitt/topics/)
 *   [Replies Created](https://wordpress.org/support/users/devinblewitt/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/devinblewitt/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/devinblewitt/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/devinblewitt/engagements/)
 *   [Favorites](https://wordpress.org/support/users/devinblewitt/favorites/)

 Search replies:

## Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Contact Form 7] Help. Plugin redirects to empty pages: wpcf7_is_ajax_call=1&_wpcf7=4&_wpcf7_req](https://wordpress.org/support/topic/help-plugin-redirects-to-empty-pages-wpcf7_is_ajax_call1_wpcf74_wpcf7_req/)
 *  [Devin Blewitt](https://wordpress.org/support/users/devinblewitt/)
 * (@devinblewitt)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/help-plugin-redirects-to-empty-pages-wpcf7_is_ajax_call1_wpcf74_wpcf7_req/#post-7328018)
 * Did you manage to resolve the issue ? I am having the same issue.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [call_user_func_array() expects parameter 1 to be valid.. Custom Function](https://wordpress.org/support/topic/call_user_func_array-expects-parameter-1-to-be-valid-custom-function/)
 *  Thread Starter [Devin Blewitt](https://wordpress.org/support/users/devinblewitt/)
 * (@devinblewitt)
 * [10 years ago](https://wordpress.org/support/topic/call_user_func_array-expects-parameter-1-to-be-valid-custom-function/#post-7278006)
 * Adding the function worked !! Thanks Jose
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [call_user_func_array() expects parameter 1 to be valid.. Custom Function](https://wordpress.org/support/topic/call_user_func_array-expects-parameter-1-to-be-valid-custom-function/)
 *  Thread Starter [Devin Blewitt](https://wordpress.org/support/users/devinblewitt/)
 * (@devinblewitt)
 * [10 years ago](https://wordpress.org/support/topic/call_user_func_array-expects-parameter-1-to-be-valid-custom-function/#post-7277923)
 * OK, I think I have it.
 * I will need to create a function in the function.php file that will register 
   the post type.
 * This should resolve my error issue, correct ?
 * Thanks.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [call_user_func_array() expects parameter 1 to be valid.. Custom Function](https://wordpress.org/support/topic/call_user_func_array-expects-parameter-1-to-be-valid-custom-function/)
 *  Thread Starter [Devin Blewitt](https://wordpress.org/support/users/devinblewitt/)
 * (@devinblewitt)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/call_user_func_array-expects-parameter-1-to-be-valid-custom-function/#post-7277811)
 * Thanks Jose for the feedback.
 * I completely understand, but want to make changes to the code to stop the errors.
   So, would you suggest that I empty the function to;
 *     ```
       add_action( 'admin_init', '' );
       register_post_type( 'course',
           array(
               'labels' => array(
                   'name' => __( 'Courses' ),
                   'singular_name' => __( 'Courses' )
               ),
               'public' => true,
               'has_archive' => true,
               'supports' => array( 'title', 'editor', 'excerpt', 'thumbnail'),
           )
       );
       ```
   
 * If because the call can’t see the function, can I confirm that no code is running
   from that function. If that is the case, removing the function call syntax would
   have no effect on the rest of the theme as it is already not being used.
 * Or do you have other ideas?
 * thanks again for your help.

Viewing 4 replies - 1 through 4 (of 4 total)