Exemple #1
0
function custom_registration_shortcode($args)
{
    ob_start();
    $a = shortcode_atts(array('role' => 'something'), $args);
    // echo  $a['role'];
    custom_registration_function($a['role']);
    return ob_get_clean();
}
function custom_registration_shortcode()
{
    ob_start();
    custom_registration_function();
    return ob_get_clean();
}
Exemple #3
0
    wp_login_form($args);
    ?>
                    </div>
                </div>
              </div>
            </div>
           <div class="modal fade registracijos_forma" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel">
              <div class="modal-dialog modal-sm">
                <div class="modal-content">
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                        <h4 class="modal-title" id="myModalLabel">Registracija</h4>
                    </div>
                    <div class="modal-body">
                      <?php 
    custom_registration_function();
    ?>
                    </div>
                </div>
              </div>
            </div>
        </div> 
<?php 
}
?>
                       
                </div>
            </nav>
<div class="main_nav_container">
    <?php 
wp_nav_menu(array('container' => 'nav', 'container_class' => 'main_nav', 'theme_location' => 'primary', 'link_before' => '<span>', 'link_after' => '</span>'));