Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Jeff Balicki
/
st_joseph
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
24351a69
authored
2023-04-02 22:14:55 -0400
by
Jeff Balicki
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
xxx
Signed-off-by: Jeff <jeff@gotenzing.com>
1 parent
647db71c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
wp-content/themes/crlg/inc/learn_mark_as_complete.php
wp-content/themes/crlg/inc/learn_mark_as_complete.php
View file @
24351a6
...
...
@@ -28,7 +28,7 @@ if ( ( class_exists( 'LearnDash_Settings_Metabox' ) ) && ( ! class_exists( 'Lear
protected
function
show_settings_metabox_fields
(
$metabox
=
null
)
{
if
(
(
is_object
(
$metabox
)
)
&&
(
is_a
(
$metabox
,
'LearnDash_Settings_Metabox'
)
)
&&
(
$metabox
->
settings_metabox_key
===
$this
->
settings_metabox_key
)
)
{
if
(
(
is_object
(
$metabox
)
)
&&
(
is_a
(
$metabox
,
'LearnDash_Settings_Metabox'
)
)
&&
(
$metabox
->
settings_metabox_key
===
$this
->
settings_metabox_key
)
&&
(
$metabox
->
settings_screen_id
===
$this
->
settings_screen_id
)
)
{
if
(
(
isset
(
$metabox
->
post
)
)
&&
(
is_a
(
$metabox
->
post
,
'WP_Post '
)
)
)
{
$course_id
=
$metabox
->
post
->
ID
;
}
else
{
...
...
@@ -91,6 +91,8 @@ if ( ( class_exists( 'LearnDash_Settings_Metabox' ) ) && ( ! class_exists( 'Lear
add_filter
(
'learndash_header_data'
,
function
(
$header_data
,
$menu_tab_key
,
$admin_tab_sets
)
{
global
$pagenow
;
if
((
$pagenow
==
'post.php'
)
&&
(
get_post_type
()
==
'sfwd-courses'
))
{
$header_data
[
'tabs'
]
=
array_merge
(
$header_data
[
'tabs'
],
array
(
...
...
@@ -102,6 +104,7 @@ add_filter(
),
)
);
}
return
$header_data
;
},
30
,
...
...
Please
register
or
sign in
to post a comment