Title: is_success
Published: April 25, 2014
Last modified: May 20, 2026

---

# is_success( $sc )

## In this article

 * [Source](https://developer.wordpress.org/reference/functions/is_success/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/functions/is_success/?output_format=md#related)

[ Back to top](https://developer.wordpress.org/reference/functions/is_success/?output_format=md#wp--skip-link--target)

## 󠀁[Source](https://developer.wordpress.org/reference/functions/is_success/?output_format=md#source)󠁿

    ```php
    function is_success ($sc) {
    	return $sc >= 200 && $sc < 300;
    }
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/rss.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.0/src/wp-includes/rss.php#L698)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/rss.php#L698-L700)

## 󠀁[Related](https://developer.wordpress.org/reference/functions/is_success/?output_format=md#related)󠁿

| Used by | Description | 
| [fetch_rss()](https://developer.wordpress.org/reference/functions/fetch_rss/)`wp-includes/rss.php` |

Build Magpie object based on RSS from URL.

  |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Fis_success%2F)
before being able to contribute a note or feedback.