Showing posts with label cms. Show all posts
Showing posts with label cms. Show all posts

Monday, October 14, 2019

WordPress LearnDash Course Completion URL filter

If you want to set the completion URL as a custom one so that after completion of course user will be sent to this URL instead of the default LearnDash URL than can use the following available filter of LearnDash with WordPress.

 add_filter("learndash_course_completion_url", function($link, $course_id) {
//You can change the link here
return $link;
}, 5, 2);

You can set or change the priority of the filter execution as per your need or keep it as it is.

Saturday, May 21, 2016

Total Post Count in WordPress

To Display total post count on any page in WordPress the following code will be helpful.

<?php
$total_posts = wp_count_posts();
echo number_format($total_posts->publish);
?>


This will display total posts in WordPress in number format.

MS SQL : How to identify fragmentation in your indexes?

Almost all of us know what fragmentation in SQL indexes are and how it can affect the performance. For those who are new Index fragmentation...