private function add_wp_directives($blade)
    {
        $blade->directive(
            'wphead',
            function () {
                return '<?php wp_head(); ?>';
            }
        );

        $blade->directive(
            'wpfooter',
            function () {
                return '<?php wp_footer(); ?>';
            }
        );

        $blade->directive(
            'sidebar',
            function ($input) {
                return "<?php dynamic_sidebar({$this->trim_input($input)}); ?>";
            }
        );

        $blade->directive(
            'action',
            function ($input) {
                return "<?php do_action({$this->trim_input($input)}); ?>";
            }
        );

        $blade->directive(
            'thecontent',
            function () {
                return "<?php the_content(); ?>";
            }
        );

        $blade->directive(
            'theexcerpt',
            function () {
                return "<?php the_excerpt(); ?>";
            }
        );

        $blade->directive(
            'navmenu',
            function ($input) {
                return "<?php wp_nav_menu({$this->trim_input($input)}); ?>";
            }
        );

        $blade->directive(
            'searchform',
            function () {
                return "<?php get_search_form(); ?>";
            }
        );

        $blade->directive(
            'setpostdata',
            function ($input) {
                return '<?php setup_postdata($GLOBALS[\'post\'] =& '. $this->trim_input($input) .'); ?>';
            }
        );

        $blade->directive(
            'resetpostdata',
            function () {
                return '<?php wp_reset_postdata(); ?>';
            }
        );
    }
private function add_wp_directives($blade)
    {
        $blade->directive(
            'wphead',
            function () {
                return '<?php wp_head(); ?>';
            }
        );

        $blade->directive(
            'wpfooter',
            function () {
                return '<?php wp_footer(); ?>';
            }
        );

        $blade->directive(
            'sidebar',
            function ($input) {
                return "<?php dynamic_sidebar({$this->trim_input($input)}); ?>";
            }
        );

        $blade->directive(
            'action',
            function ($input) {
                return "<?php do_action({$this->trim_input($input)}); ?>";
            }
        );

        $blade->directive(
            'thecontent',
            function () {
                return "<?php the_content(); ?>";
            }
        );

        $blade->directive(
            'theexcerpt',
            function () {
                return "<?php the_excerpt(); ?>";
            }
        );

        $blade->directive(
            'navmenu',
            function ($input) {
                return "<?php wp_nav_menu({$this->trim_input($input)}); ?>";
            }
        );

        $blade->directive(
            'searchform',
            function () {
                return "<?php get_search_form(); ?>";
            }
        );

        $blade->directive(
            'setpostdata',
            function ($input) {
                return '<?php setup_postdata($GLOBALS[\'post\'] =& '. $this->trim_input($input) .'); ?>';
            }
        );

        $blade->directive(
            'resetpostdata',
            function () {
                return '<?php wp_reset_postdata(); ?>';
            }
        );
    }
private function add_wp_directives ( $ blade ) { $ blade -> directive ( 'wphead' , function ( ) { return '<?php wp_head(); ?>' ; } ) ; $ blade -> directive ( 'wpfooter' , function ( ) { return '<?php wp_footer(); ?>' ; } ) ; $ blade -> directive ( 'sidebar' , function ( $ input ) { return "<?php dynamic_sidebar({$this->trim_input($input)}); ?>" ; } ) ; $ blade -> directive ( 'action' , function ( $ input ) { return "<?php do_action({$this->trim_input($input)}); ?>" ; } ) ; $ blade -> directive ( 'thecontent' , function ( ) { return "<?php the_content(); ?>" ; } ) ; $ blade -> directive ( 'theexcerpt' , function ( ) { return "<?php the_excerpt(); ?>" ; } ) ; $ blade -> directive ( 'navmenu' , function ( $ input ) { return "<?php wp_nav_menu({$this->trim_input($input)}); ?>" ; } ) ; $ blade -> directive ( 'searchform' , function ( ) { return "<?php get_search_form(); ?>" ; } ) ; $ blade -> directive ( 'setpostdata' , function ( $ input ) { return '<?php setup_postdata($GLOBALS[\'post\'] =& ' . $ this -> trim_input ( $ input ) . '); ?>' ; } ) ; $ blade -> directive ( 'resetpostdata' , function ( ) { return '<?php wp_reset_postdata(); ?>' ; } ) ; }
Add custom directives for WordPress functions to blade.

@since  1.0.0

@param BladeOne $blade The BladeOne service.
Add custom directives for WordPress functions to blade .