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.


Top ↑

Return Return

(string|false)


Top ↑

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 );

	}


Top ↑

Changelog Changelog

Changelog
Version Description
5.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.