Short answer but I think it is all you need.
do_shortcode("[book id='1' /]");
Reference:
Related Posts:
- How to include code only on specific pages?
- Enqueue style inside shortcode but its loaded at the bottom of page (before footer scripts)
- Best place for short bio,image and button [closed]
- Deactivate JS Script in Plugin Shortcode
- Passing a parameter to filter and action functions
- How to add a shortcode button to the TinyMCE editor?
- Get a list of all registered actions
- How can I edit post data before it is saved?
- How can I see all the actions attached to an “add_action” hook?
- How to customise the output of the WP image gallery shortcode from a plugin?
- Registering Class methods as hook callbacks
- How to customize woocommerce related products? [closed]
- Changing the “Plugin Activated” Message Default
- Hooking in to plugins
- Custom media upload content for inserting custom post shortcode
- Generate dormant hook references
- Schedule WordPress Auto-Updates to only run during business hours
- Better to fire specific hooks or generic hooks with parameters?
- How to only hook on Single.php after content?
- Remove action from plugin on other plugin
- Why does wp_enqueue_style() in plugin not load stylesheet?
- Checking if an attribute exists in a shortcode
- Preventing a plugin from updating
- how to include other plugins css files in a shortcode?
- How To Determine If A Filter Is Called In A Sidebar/Widget Context?
- Is there any debug toolbar that shows whick hooks are called for the current page in WordPress?
- When can you get current page ID and initialize hooks right after?
- What characters are allowed as a shortcode tag and how should they be sanitized?
- Customizing subject in comment notification e-mails
- All shortcodes not working on custom theme
- How to save the values of checkbox to the register setting?
- Can we hook a static method of a class to add_action inside that class?
- enqueue script only if it is not already enqueue
- Shortcode output appears before post body [duplicate]
- Edit plugin without hooks in functions.php
- How can I log a user out of WordPress before the page loads?
- What is the ‘admin_action_’ . $_REQUEST[‘action’] hook used for?
- WP showing “warning: call_user_func_array()”, What to do?
- Filter out results from REST API
- Autogenerate wordpress shortcodes using array?
- How can I remove a hooked action created by a plugin?
- WordPress admin notice in plugin function
- Using the ‘draft_to_publish’ hook (post status transition)
- PHP Deprecated: Non-static method should not be called statically
- Filter Hook on plugin update
- How to parse nested shortcodes?
- Loading shortcode with ajax
- Modify featured image URL at runtime
- WordPress Hook that will run when media file deleted
- Adding Custom Fields for Img in Posts
- Seeking clarification on page request life-cycle
- How to call shortcode function directly and pass $atts
- Disallow a user to post in certain categories
- How To Ignore a Filter On Applying Filter the Content In a Function
- Intercepting a add_action
- Generic plugin (de)activation hook?
- Cannot strip JW Player shortcode?
- Which hook should be used to validate custom form fields on the login form?
- Shortcode display outside the div
- How to pass multiple values in shortcode?
- Good tools for locating hooks in a wordpress page/admin interface/blog post?
- append stylesheet via shortcode
- disable active plugins for specific theme
- Shortcode under a Shortcode Multiple times Possible?
- Twillio How To Send SMS for Custom Post Type
- Hook (upgrader_process_complete) running moment
- Adding a form at the end of the content
- Pass $this to function nested in another public function of the same class
- Hide WordPress Plugin Deactivation Links
- change plugin shortcode function [closed]
- Calling function from within functions.php returns unwanted value
- Find out if request is for custom post type archive before query runs
- Use external link in the add sub menu
- plugin shortcodes not working on custom theme- unsure how to fix
- How to list all active and specific shortcodes in wordpress
- Pass A Value From Outside To A Plugin Variable
- Dynamic HTML not displaying at respective place
- shortcode doesn’t work
- Built in admin ajax hooks?
- Failed to invoke other hook from the init hook
- Does the ‘nav_menu_css_class’ filter accept 2 or 3 arguments?
- Plugin form unable to process
- How can I add a custom meta value on file upload?
- Adding dynamic section to WordPress
- Calling shortcode in wp_localize_script strips result
- Nested shortcodes
- WordPress shortcodes & performance
- do_action and hook methods
- the_posts hook, which set of posts?
- How can I filter blog name?
- why does the add_action(‘the_content’) overwrite my page
- Fatal error: Class not found in
- Is it possible to add an action to the currently running action?
- woocommerce product attributes
- Is it possible to make shortcodes NOT case sensitive?
- How to filter content post only on save
- Filter or action hook to insert content on admin pages before tag
- Short code for Venues
- do_shortcode() doesn’t work if shortcode contained in variable, works if shortcode passed as string
- Showing Notifications While Activating Plugin