WordPress.org

Forums

Wrong datatype for second argument in /wp-includes/post.php on line 1443 (4 posts)

  1. nikola123
    Member
    Posted 6 years ago #

    Hi,

    Does anybody know why I'm getting this error.
    Warning: in_array() [function.in-array]: Wrong datatype for second argument in /wp-includes/post.php on line 1443

    Actually what is "second argument" ?

    I'm developing plugin and using wp_insert_post
    from Function_Reference on this site.

    Thanks,
    Nikola

  2. nikola123
    Member
    Posted 6 years ago #

    I found that second argument is
    $wp_rewrite->feeds

    But don't have idea what is that.

  3. nikola123
    Member
    Posted 6 years ago #

    Nobody ?

  4. Jeriko
    Member
    Posted 6 years ago #

    Tie your function to a hook, so the rewrite rules can be populated before your function runs:

    add_action('init','myfunction');

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.