Created
March 26, 2025 18:11
-
-
Save dantetesta/759e9ee7f613a778147f23629478df9e to your computer and use it in GitHub Desktop.
Debug Options JetEngine
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[debug_options] | |
<?php | |
function shortcode_debug_options() { | |
$options = get_option('ajustes-do-site'); | |
if (!$options) { | |
return '<p>Nenhum dado encontrado na options page <strong>ajustes-do-site</strong>.</p>'; | |
} | |
ob_start(); | |
echo '<h3>Conteúdo da Options Page: <code>ajustes-do-site</code></h3>'; | |
echo '<pre>'; | |
print_r($options); | |
echo '</pre>'; | |
return ob_get_clean(); | |
} | |
add_shortcode('debug_options', 'shortcode_debug_options'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment