id || ! current_user_can( 'activate_plugins' ) || TablePress_Adapter::is_available() ) {
return;
}
printf( '
', esc_html( self::dependency_message() ) );
}
/**
* Explains that TableRefresh needs TablePress.
*
* @return string
*/
public static function dependency_message(): string {
return sprintf(
/* translators: %s: minimum TablePress version. */
__( 'TableRefresh – Auto Sync for TablePress requires the free TablePress plugin, version %s or newer, to be installed and active.', 'tablerefresh' ),
TablePress_Adapter::MIN_VERSION
);
}
}