Browse: Home / Snippets /

Hide Open course option from Course Access metabox

Contents


Snippet #

add_action('admin_head', 'my_custom_css');

function my_custom_css() {
  echo '<style>
    #learndash-course-access-settings_course_price_type_field > span:nth-child(2) > div:nth-child(1) > fieldset:nth-child(1) > p:nth-child(2) {
      display: none;
    } 
	#learndash-course-access-settings_course_price_type_field > span:nth-child(2) > div:nth-child(1) > fieldset:nth-child(1) > p:nth-child(3) {
	display: none;
	}
  </style>';
}