install_helper_script( $script_body ); } /** * Ensure that the helper script is gone (by deleting it, if needed). * * @param string $path Path to the helper script to delete. * * @return true|\WP_Error True if the file helper script is gone (either it got deleted, or it was never there), or * WP_Error instance on deletion failures. */ public static function delete_helper_script( $path ) { static::initialize_impl_if_needed(); return static::$impl->delete_helper_script( $path ); } /** * Search for Helper Scripts that are suspiciously old, and clean them out. * * @return true|\WP_Error True if all expired helper scripts got cleaned up successfully, or an instance of * WP_Error if one or more expired helper scripts didn't manage to get cleaned up. */ public static function cleanup_expired_helper_scripts() { static::initialize_impl_if_needed(); return static::$impl->cleanup_expired_helper_scripts(); } /** * Search for and delete all Helper Scripts. Used during uninstallation. * * @return true|\WP_Error True if all helper scripts got deleted successfully, or an instance of WP_Error if one or * more helper scripts didn't manage to get deleted. */ public static function delete_all_helper_scripts() { static::initialize_impl_if_needed(); return static::$impl->delete_all_helper_scripts(); } }