Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce a new filter for the media heading #44

merged 2 commits into from Mar 20, 2019


None yet
2 participants
Copy link

commented Mar 19, 2019

Fixes #26

Introduces the filter sensei_media_attachments_media_heading to change the media heading.

Testing Instructions

Add a snippet using the filter and verify it changes the media section title on the lesson/course page.

add_filter('sensei_media_attachments_media_heading', function() {
  return 'Downloads';

@jom jom added the Hooks & Filters label Mar 19, 2019

@jom jom added this to the 2.0.0 milestone Mar 19, 2019

@jom jom requested review from donnapep and alexsanford Mar 19, 2019

@jom jom changed the title Introduce new filter for the media heading Introduce a new filter for the media heading Mar 19, 2019

Copy link

left a comment

One small thing, otherwise LGTM!

Show resolved Hide resolved classes/class-sensei-media-attachments.php Outdated

@jom jom merged commit 3033df2 into master Mar 20, 2019

@jom jom deleted the add/title-filter branch Mar 20, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.