Lock users if website is idle for certain period ウェブサイトが一定期間アイドル状態の場合にユーザーをロックするBy Amiru San

/** * Lock user out after 5 minutes of inactivity by Amiru ウェブサイトが一定期間アイドル状態の場合にユーザーをロックする. */ add_action( ‘init’, ‘lock_user_after_inactivity’ ); function lock_user_after_inactivity() { // Check if the user is logged in if ( is_user_logged_in() ) { // Get the current user ID…Continue reading

WPForms Repeater Output Support / Central Region Service Request (SEI)

add_action(‘wpforms_loaded’, function() { // 1. Register your custom smart tags (this happens site-wide). add_filter(‘wpforms_smart_tags’, function($tags) { $tags[‘equipment_type_list’] = ‘Equipment Type List’; $tags[‘ownership_type_list’] = ‘Ownership Type List’; $tags[‘serial_number_list’] = ‘Serial Number List’; $tags[‘brand_model_list’] = ‘Brand/Model List’; return $tags; }); // 2.…Continue reading

WPForms Repeater Output Support / Central Region Service Request (SKY)

add_action(‘wpforms_loaded’, function() { // 1. Register your custom smart tags (this happens site-wide). add_filter(‘wpforms_smart_tags’, function($tags) { $tags[‘equipment_type_list’] = ‘Equipment Type List’; $tags[‘ownership_type_list’] = ‘Ownership Type List’; $tags[‘serial_number_list’] = ‘Serial Number List’; $tags[‘brand_model_list’] = ‘Brand/Model List’; return $tags; }); // 2.…Continue reading

WPForms Repeater Output Support / Central Region Service Request (LSO)

add_action(‘wpforms_loaded’, function() { // 1. Register your custom smart tags (this happens site-wide). add_filter(‘wpforms_smart_tags’, function($tags) { $tags[‘equipment_type_list’] = ‘Equipment Type List’; $tags[‘ownership_type_list’] = ‘Ownership Type List’; $tags[‘serial_number_list’] = ‘Serial Number List’; $tags[‘brand_model_list’] = ‘Brand/Model List’; return $tags; }); // 2.…Continue reading

WPForms Repeater Output Support / Central Region Service Request (EDB)

add_action(‘wpforms_loaded’, function() { // 1. Register your custom smart tags (this happens site-wide). add_filter(‘wpforms_smart_tags’, function($tags) { $tags[‘equipment_type_list’] = ‘Equipment Type List’; $tags[‘ownership_type_list’] = ‘Ownership Type List’; $tags[‘serial_number_list’] = ‘Serial Number List’; $tags[‘brand_model_list’] = ‘Brand/Model List’; return $tags; }); // 2.…Continue reading

WPForms Repeater Output Support / Central Region Service Request (ACE)

add_action(‘wpforms_loaded’, function() { // 1. Register your custom smart tags (this happens site-wide). add_filter(‘wpforms_smart_tags’, function($tags) { $tags[‘equipment_type_list’] = ‘Equipment Type List’; $tags[‘ownership_type_list’] = ‘Ownership Type List’; $tags[‘serial_number_list’] = ‘Serial Number List’; $tags[‘brand_model_list’] = ‘Brand/Model List’; return $tags; }); // 2.…Continue reading

WPForms Repeater Output Support / Central Region Service Request (ALS)

add_action(‘wpforms_loaded’, function() { // 1. Register your custom smart tags (this happens site-wide). add_filter(‘wpforms_smart_tags’, function($tags) { $tags[‘equipment_type_list’] = ‘Equipment Type List’; $tags[‘ownership_type_list’] = ‘Ownership Type List’; $tags[‘serial_number_list’] = ‘Serial Number List’; $tags[‘brand_model_list’] = ‘Brand/Model List’; return $tags; }); // 2.…Continue reading

Add Campaign Status to Campaign Shortcode

add_action(‘charitable_campaign_content_loop_after’, ‘charitable_add_campaign_status_in_campaigns_shortcode’); function charitable_add_campaign_status_in_campaigns_shortcode( $campaign = false, $view_args = array() ) { if ( ! empty( $campaign->get_status() ) ) { echo ‘ ‘ . $campaign->get_status() . ‘ ‘; } }Continue reading