/** * Get and use the File Upload field URL * * @link https://wpforms.com/developers/how-to-get-the-url-from-the-file-upload-form-field/ */ function wpf_dev_frontend_confirmation_message( $message, $form_data, $fields, $entry_id ) { // Only run on my form with ID = 1000 if ( absint( $form_data[ ‘id’ ] )…Continue reading
/** * Dynamically display years in the forms * * @link https://wpforms.com/developers/how-to-dynamically-display-years-in-your-forms/ */ function wpf_dev_dynamic_school_year( ) { ?>Continue reading
add_filter(‘aioseo_post_additional_keywords_limit’, function() { return 20; });Continue reading
//script: r2c on Call Param with Enhanced Tracking //ver 2.6 if (!defined(‘ABSPATH’)) exit; // Check if Device class is available before using it $device_class_available = class_exists(‘PODeviceDetector\API\Device’); // Only define the function if it doesn’t already exist if (!function_exists(‘is_search_engine_bot’)) { function…Continue reading
add_action(‘admin_menu’, ‘add_sitemap_generator_menu’); function add_sitemap_generator_menu() { add_menu_page( ‘Sitemap Generator’, ‘Sitemap Generator’, ‘manage_options’, ‘csv-sitemap-generator’, ‘csv_sitemap_generator_page’, ‘dashicons-networking’ ); } function write_log($message) { $timestamp = date(‘Y-m-d H:i:s’); $log_entry = “[$timestamp] $message\n”; file_put_contents(WP_CONTENT_DIR . ‘/sitemap-logs.txt’, $log_entry, FILE_APPEND); } function generate_sitemap_file($urls, $batch_number, $output_dir) { header(‘Cache-Control: no-store,…Continue reading
/** * 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