LLMS_Form_Post_Type::modify_permalink( string $permalink, WP_Post $post )
Modify the permalink of a given form.
Parameters Parameters
- $permalink
-
(string) (Required) Default permalink.
- $post
-
(WP_Post) (Required) Post object.
Return Return
(string|false)
Source Source
File: includes/forms/class-llms-form-post-type.php
public function modify_permalink( $permalink, $post ) { if ( $this->post_type !== $post->post_type ) { return $permalink; } return $this->get_permalink( $post ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
5.0.0 | Introduced. |