MCPcopy Create free account
hub / github.com/cedaro/shiny-code / display_missing_dependencies_notice

Function display_missing_dependencies_notice

php/functions.php:20–40  ·  view source on GitHub ↗

* Display a notice about missing dependencies. * * @since 1.0.1 */

()

Source from the content-addressed store, hash-verified

18 * @since 1.0.1
19 */
20function display_missing_dependencies_notice() {
21 $message = sprintf(
22 /* translators: %s: documentation URL */
23 __( 'Shiny Code is missing required dependencies. <a href="%s" target="_blank" rel="noopener noreferer">Learn more.</a>', 'shiny-code' ),
24 'https://github.com/cedaro/shiny-code#installation'
25 );
26
27 printf(
28 '<div class="shiny-code-compatibility-notice notice notice-error"><p>%s</p></div>',
29 wp_kses(
30 $message,
31 [
32 'a' => [
33 'href' => true,
34 'rel' => true,
35 'target' => true,
36 ],
37 ]
38 )
39 );
40}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected