Criando shortcode no Wordpress

First, navigate to your WordPress dashboard. Then, go to "Appearance" and select "Editor." In the right-hand column, click on the "Theme Functions" file. Add your new shortcode function to this file, using the following format:

function custom_shortcode_function() {
    // Your code here
}
add_shortcode('custom_shortcode', 'custom_shortcode_function');

Replace "custom_shortcode" with your desired shortcode name and add your custom functionality within the function. Don't forget to save your changes after adding the function.