wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



wp_is_php_version_acceptable › Filtr WordPress Hooks

Od5.1.1
Przestarzałyn/a
apply_filters( 'wp_is_php_version_acceptable', true, $version )
Parametry: (2)
  • (bool) $is_acceptable Whether the PHP version is considered acceptable. Default true.
    Wymagane: Tak
  • (string) $version PHP version checked.
    Wymagane: Tak
Zdefiniowane na:
Codex:

Filters whether the active PHP version is considered acceptable by WordPress.

Returning false will trigger a PHP version warning to show up in the admin dashboard to administrators.

This filter is only run if the wordpress.org Serve Happy API considers the PHP version acceptable, ensuring that this filter can only make this check stricter, but not loosen it.





Źródło

$response['is_acceptable'] = (bool) apply_filters( 'wp_is_php_version_acceptable', true, $version );