This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Instance of the batch processing job. | |
$job = MyBatchJob(); | |
// How many failed attempts do you want to process. | |
$batch_max_attempts = 3; | |
add_action( 'action_scheduler_failed_execution', 'maybe_retry_failed_batch' ); | |
add_action( 'action_scheduler_failed_action', 'maybe_retry_failed_batch' ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php get_header(); ?> | |
<!-- page content --> | |
<div class="pageWrap"> | |
<div class="title-banner"> | |
<div class="container"> | |
<div class="mobile-wrap-page"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<form action="" method="get"> | |
<p> | |
<input type="text" name="swpquery" id="swpquery" value="" data-swplive="true" value="<?php if ( isset( $_GET['swpquery'] ) ) { echo esc_attr( $_GET['swpquery'] ); } ?>" /> <!-- data-swplive="true" enables SearchWP Live Search --> | |
</p> | |
<p> | |
<button type="submit"><?php _e( 'Search' , 'mytextdomain' ); ?></button> | |
</p> | |
</form> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function hs4588_searchwp_live_search_configs( $configs ) { | |
$configs = array( | |
'default' => array( // 'default' config | |
'engine' => 'coach_chats', // search engine to use (if SearchWP is available) | |
'input' => array( | |
'delay' => 500, // wait 500ms before triggering a search | |
'min_chars' => 3, // wait for at least 3 characters before triggering a search | |
), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Seach WP posts per page | |
add_filter('searchwp_posts_per_page', function($posts_per_page, $engine, $terms, $page) { | |
return 20; | |
}, 99, 4); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if (!is_user_logged_in()) { | |
if (!in_array($GLOBALS['pagenow'], array('wp-login.php'))) { | |
if ( isset( $_REQUEST['swpnonce'] ) || isset( $_REQUEST['swppurge'] ) ) { | |
//Indexer | |
} else { | |
$actual_link = (isset($_SERVER['HTTPS']) ? "https" : "http") . "://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]"; | |
if ( wp_redirect(wp_login_url($actual_link)) ) { | |
exit; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Template Name: search-events-nodates | |
* | |
* This is template will display a login form | |
*/ | |
add_action('get_header', 'ck_do_login_form'); | |
// Début de page pour supprimer les commentaires présents sur les pages par défault |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* The default template for displaying content | |
* | |
* Used for both single and index/archive/search | |
* | |
* @package Catch Themes | |
* @subpackage Clean Journal | |
* @since Clean Journal 0.1 | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Template Name: Newsroom | |
* | |
* @package becketfund | |
*/ | |
global $post; | |
// retrieve our search query if applicable . |
NewerOlder