/** * Convert Uploaded Images to WebP Format * * This snippet converts uploaded images (JPEG, PNG, GIF) to WebP format * automatically in WordPress. Ideal for use in a theme’s functions.php file, * or with plugins like Code Snippets…Continue reading
if (!function_exists(‘rk_keep_me_logged_in’)) { function rk_keep_me_logged_in($expirein) { return 31556926; // 1 year in seconds } } add_filter(‘auth_cookie_expiration’,’rk_keep_me_logged_in’);Continue reading
add_filter( ‘rank_math/frontend/robots’, function( $robots ) { // Check if we are currently viewing a feed if ( is_feed() ) { $robots[‘index’] = ‘noindex’; $robots[‘follow’] = ‘nofollow’; } return $robots; });Continue reading
// Función para crear el shortcode del formulario function custom_financial3_form() { ob_start(); ?>Continue reading
// Notify Slack when a plugin, theme, or WordPress core is updated add_action(‘upgrader_process_complete’, ‘notify_slack_updates_v2’, 10, 2); function notify_slack_updates_v2($upgrader_object, $options) { $slackURL = “https://hooks.slack.com/services/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”; // Replace with your Slack Webhook URL $site_name = get_bloginfo(‘name’); // Plugin Updates if ($options[‘type’] === ‘plugin’…Continue reading
$posts = get_field(‘rel_tour_types’); if( $posts ): ?> Tour Types that Visit this AttractionContinue reading