Plugin Directory

Changeset 1468150


Ignore:
Timestamp:
08/04/2016 11:36:01 PM (10 years ago)
Author:
elevio
Message:

adding in additional filter calls for before, after, and during

Location:
elevio/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • elevio/trunk/elevio.php

    r1466578 r1468150  
    66Author: Elevio
    77Author URI: https://elev.io
    8 Version: 3.5.4
     8Version: 3.5.5
    99*/
    1010
  • elevio/trunk/plugin_files/ElevioSync.class.php

    r1459968 r1468150  
    5151        // categories, not custom taxonomies.
    5252        if (isset($_GET['cat'])) {
    53             $_GET['tax_query'] = array(
     53            $tax_query = array(
    5454                array(
    5555                    'taxonomy' => Elevio::get_instance()->get_category_taxonomy(),
     
    5858                ),
    5959            );
     60
     61            // Allow the running of some extra filters on the retrieved topics
     62            $tax_query = apply_filters('elevio_posts_tax_query', $tax_query);
     63            $_GET['tax_query'] = $tax_query;
    6064
    6165            // We get rid of the 'cat' parameter too.
  • elevio/trunk/plugin_files/models/post.php

    r1466578 r1468150  
    3131      $this->import_wp_object($wp_post);
    3232    }
    33     // do_action("json_api_{$this->type}_constructor", $this);
    3433  }
    3534
     
    3736  function import_wp_object($wp_post) {
    3837    global $json_api, $post;
    39     // $date_format = $json_api->query->date_format;
    4038    $this->id = (int) $wp_post->ID;
    4139    setup_postdata($wp_post);
     
    4644    $this->set_categories_value();
    4745    $this->set_tags_value();
    48 
    49     // do_action("json_api_import_wp_post", $this, $wp_post);
    5046  }
    5147
     
    5753    global $json_api;
    5854    $content = get_post_field('post_content', $this->id);
    59 //    $content = apply_filters('the_content', $content);
     55    $content = apply_filters('elevio_post_content_before', $content); // This the users theme modify post content before...
    6056    $content = do_shortcode($content);
     57    $content = apply_filters('elevio_post_content_after', $content); // ...and after processing.
    6158    $this->content = $content;
    6259  }
  • elevio/trunk/readme.txt

    r1466578 r1468150  
    22Contributors: Elevio
    33Tags: zendesk, desk.com, uservoice, zopim, olark, snapengage, livechat, knowledge base, live chat, support, intercom, statuspage, freshdesk, intercom
    4 Stable tag: 3.5.4
     4Stable tag: 3.5.5
    55Requires at least: 2.8
    66Tested up to: 4.4.2
Note: See TracChangeset for help on using the changeset viewer.