• Ello.

    Google seems to have very little (or my search keywords are terrible) about the return codes on queries such as updating, deleting.

    Would 0 or 1 be a successful return?

Viewing 1 replies (of 1 total)
  • Assuming you mean using WP_Query class to query posts for example, the best way of getting this information is either reading WP_Query Codex and/or looking into the source code of WordPress (file wp-includes/query.php or query.php on WordPress SVN repo).

    For example, function query_posts() returns array of posts when successful or an empty array if there are no queried posts (as far as I can see from the source code).

Viewing 1 replies (of 1 total)

The topic ‘Query return codes’ is closed to new replies.