Skip to content

Commit

Permalink
Reverting unchanged file.
Browse files Browse the repository at this point in the history
  • Loading branch information
brianhogg committed Feb 3, 2025
1 parent 44d06a7 commit c5f6791
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions includes/forms/class-llms-form-post-type.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ public function __construct( $forms ) {
* @param string $capability The user capability. Default: "manage_lifterlms".
*/
$this->capability = apply_filters( 'llms_forms_managment_capability', $this->capability );

}

/**
Expand All @@ -84,6 +85,7 @@ public function enable_post_type_visibility( $response, $post_type ) {
$response->data['viewable'] = true;
}
return $response;

}

/**
Expand Down Expand Up @@ -114,6 +116,7 @@ private function get_permalink( $post ) {
* @param WP_Post $post The form post object.
*/
return apply_filters( 'llms_form_permalink', $url, $location, $post );

}

/**
Expand Down Expand Up @@ -155,6 +158,7 @@ private function get_permalink_for_checkout() {
}

return LLMS_View_Manager::get_url( 'visitor', $url, $args );

}

/**
Expand All @@ -167,6 +171,7 @@ private function get_permalink_for_checkout() {
private function get_permalink_for_registration() {

return LLMS_View_Manager::get_url( 'visitor', llms_get_page_url( 'myaccount' ) );

}

/**
Expand Down Expand Up @@ -207,6 +212,7 @@ public function modify_permalink( $permalink, $post ) {
}

return $this->get_permalink( $post );

}

/**
Expand Down Expand Up @@ -264,6 +270,7 @@ public function register_post_type() {
);

LLMS_Post_Types::register_post_type( $this->post_type, $args );

}

/**
Expand Down Expand Up @@ -312,6 +319,7 @@ public function register_meta() {
);

}

}

/**
Expand All @@ -330,4 +338,5 @@ public function register_meta() {
public function meta_auth_callback( $allowed, $meta_key, $object_id, $user_id, $cap, $caps ) {
return user_can( $user_id, $this->capability, $object_id );
}

}

0 comments on commit c5f6791

Please sign in to comment.