WordPress.org

Plugin Directory


Ignore:
Timestamp:
06/23/17 13:22:12 (5 months ago)
Author:
bastho
Message:

Initial work on Search-Form

File:
1 edited

Legend:

Unmodified
Added
Removed
  • event-post/trunk/inc/shortcodes.php

    r1542786 r1684297  
    1616        add_shortcode('event_term', array(&$this, 'shortcode_term')); 
    1717        add_shortcode('event_cat', array(&$this, 'shortcode_cat')); 
     18        add_shortcode('event_search', array(&$this, 'shortcode_search')); 
    1819        // Workaround for ACF select2 bug 
    1920        // see: https://github.com/wp-shortcake/shortcake/issues/660 
    20         add_filter( 'acf/settings/select2_version', function( $version ) { 
    21                 return 4; // 3 or 4 
    22         }); 
     21        add_filter( 'acf/settings/select2_version', array(&$this, 'return4')); 
    2322    } 
    2423 
     
    3029        $this->EP = $EventPost; 
    3130    $this->shortcode_ui(); 
     31    } 
     32 
     33    public function return4(){ 
     34        return 4; 
    3235    } 
    3336 
     
    220223    } 
    221224 
     225    /** 
     226     * 
     227     * @param type $_atts 
     228     * @return type 
     229     */ 
     230    public function shortcode_search($_atts){ 
     231        return $this->EP->search($_atts); 
     232    } 
    222233 
    223234    /** 
Note: See TracChangeset for help on using the changeset viewer.