Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 20 additions & 1 deletion includes/sm-deprecated-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,23 @@
*/
function wpfc_sermon_date( $d, $before = '', $after = '' ) {
sm_the_date( $d, $before = '', $after = '' );
}
}

/**
* Saves service type
*
* Will be obsolete when we add new meta boxes code
*
* @param int $post_ID
*/
function set_service_type( $post_ID ) {
if ( isset( $_POST['wpfc_service_type'] ) ) {
if ( $term = get_term_by( 'id', $_POST['wpfc_service_type'], 'wpfc_service_type' ) ) {
$service_type = $term->slug;
}

wp_set_object_terms( $post_ID, empty( $service_type ) ? null : $service_type, 'wpfc_service_type' );
}
}

add_action( 'save_post', 'set_service_type', 99 );
Binary file added languages/sermon-manager-for-wordpress-es_ES.mo
Binary file not shown.
Loading