| | 281 | /** |
| | 282 | * Filter arguments used to query for installer pages from the WordPress.org Themes API. |
| | 283 | * |
| | 284 | * Important: An object MUST be returned to this filter. |
| | 285 | * |
| | 286 | * @since 2.8.0 |
| | 287 | * |
| | 288 | * @param object $args Arguments to query for installer pages from the WordPress.org Themes API. |
| | 289 | * @param string $action Requested action. Likely values are 'theme_information', |
| | 290 | * 'feature_list', or 'query_themes'. |
| | 291 | */ |
| | 292 | $args = apply_filters( 'themes_api_args', $args, $action ); |
| | 293 | |
| | 294 | /** |
| | 295 | * Filter whether to override the WordPress.org Themes API. |
| | 296 | * |
| | 297 | * Returning a value of true to this filter allows a theme to completely |
| | 298 | * override the built-in WordPress.org API. |
| | 299 | * |
| | 300 | * @since 2.8.0 |
| | 301 | * |
| | 302 | * @param bool $bool Whether to override the WordPress.org Themes API. Default false. |
| | 303 | * @param string $action Requested action. Likely values are 'theme_information', |
| | 304 | * 'feature_list', or 'query_themes'. |
| | 305 | * @param object $args Arguments to query for installer pages from the Themes API. |
| | 306 | */ |
| | 307 | $res = apply_filters( 'themes_api', false, $action, $args ); |
| 311 | | return apply_filters('themes_api_result', $res, $action, $args); |
| | 336 | /** |
| | 337 | * Filter the WordPress.org Themes API installer pages result. |
| | 338 | * |
| | 339 | * @since 2.8.0 |
| | 340 | * |
| | 341 | * @param array|object $res Response array or object. |
| | 342 | * @param string $action Requested action. Likely values are 'theme_information', |
| | 343 | * 'feature_list', or 'query_themes'. |
| | 344 | * @param object $args Arguments used to query for installer pages from the Themes API. |
| | 345 | */ |
| | 346 | return apply_filters( 'themes_api_result', $res, $action, $args ); |