Ejemplo n.º 1
0
function bp_get_link_details_form_action()
{
    global $bp;
    if (bp_links_current_link_exists()) {
        $form_action = bp_get_link_admin_form_action();
    } else {
        switch (bp_current_component()) {
            default:
            case bp_links_id():
            case bp_links_slug():
                $form_action = $bp->loggedin_user->domain . bp_links_slug() . '/create';
                break;
        }
    }
    return apply_filters('bp_get_link_details_form_action', $form_action);
}
Ejemplo n.º 2
0
function bp_links_current_link_embed_enabled()
{
    global $bp;
    if (bp_links_current_link_exists()) {
        return $bp->links->current_link->embed_status_enabled();
    } else {
        return false;
    }
}