LearnDash_Permalinks

LearnDash_Permalinks

Description #


Source #

File: includes/class-ld-permalinks.php


Methods #

  • __construct — Public constructor for class
  • comment_form_top — Action for comment form when nested URLs are enabled. This way ther user is returned to this course step URL
  • comment_post — Add the course_id to comment meta
  • generate_rewrite_rules — Setup custom rewrtie URLs.
  • get_edit_post_link — Override WordPress Get Edit Post Link to include nested URL.
  • get_sample_permalink — Hook into the admin post editor Permalink display. We override the LD post items so they include the full nested URL
  • post_type_link — This second filter will correct calls to the WordPress get_permalink() function to use the new structure
  • row_actions — Called via the WordPress List Table instance. This function will adjust the course step permalinks to be nested if enabled.