• Resolved meneeroom

    (@meneeroom)


    Hi There

    Do you perhaps have a reference of add_actions and add_filters to change the plugin core functionalities like output HTML?

    I’d like to make changes like change the search text, change the “Post Types” and “Taxonomies” headings, etc

    I was unable to find on agolia and the support requests

    Kind regards

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    At least based on the latest version I have from Github, the following are all the action/filter hooks in the code right now, including file and line number

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    includes/indices/class-algolia-index.php
    278: do_action( 'algolia_before_get_records', $item );
    280: do_action( 'algolia_after_get_records', $item );
    403: do_action( 'algolia_before_get_records', $item );
    405: do_action( 'algolia_after_get_records', $item );
    417: do_action( 'algolia_re_indexed_items', $this->get_id() );
    569: do_action( 'algolia_de_indexed_items', $this->get_id() );
    
    includes/indices/class-algolia-posts-index.php
    384: do_action( 'algolia_posts_index_post_updated', $post, $records );
    385: do_action( 'algolia_posts_index_post_' . $post->post_type . '_updated', $post, $records );
    
    includes/indices/class-algolia-searchable-posts-index.php
    365: do_action( 'algolia_searchable_posts_index_post_updated', $post, $records );
    366: do_action( 'algolia_searchable_posts_index_post_' . $post->post_type . '_updated', $post, $records );
    
    includes/class-algolia-template-loader.php
    134: do_action( 'algolia_autocomplete_scripts' );
    180: do_action( 'algolia_instantsearch_scripts' );
    
    algolia.php
    117: $locale = apply_filters( 'plugin_locale', get_locale(), 'wp-search-with-algolia' );
    
    includes/indices/class-algolia-index.php
    449: $clear_if_existing = (bool) apply_filters(
    459: $force_settings_update = (bool) apply_filters( 'algolia_should_force_settings_update', false, $this->get_id() );
    581: $batch_size = (int) apply_filters( 'algolia_indexing_batch_size', 100 );
    582: $batch_size = (int) apply_filters( 'algolia_' . $this->get_id() . '_indexing_batch_size', $batch_size );
    685: $replicas = (array) apply_filters( 'algolia_index_replicas', array(), $this );
    686: $replicas = (array) apply_filters( 'algolia_' . $this->get_id() . '_index_replicas', $replicas, $this );
    
    includes/indices/class-algolia-posts-index.php
    121: return (bool) apply_filters( 'algolia_should_index_post', $should_index, $post );
    158: $post_content = apply_filters( 'algolia_post_content', $post->post_content, $post );
    159: $post_content = apply_filters( 'the_content', $post_content );
    181: $records = (array) apply_filters( 'algolia_post_records', $records, $post );
    182: $records = (array) apply_filters( 'algolia_post_' . $post->post_type . '_records', $records, $post );
    203: $shared_attributes['post_excerpt'] = apply_filters( 'the_excerpt', $post->post_excerpt );
    254: $metadata = (array) apply_filters( 'wp_get_attachment_metadata', $metadata, $post->ID );
    259: $shared_attributes = (array) apply_filters( 'algolia_post_shared_attributes', $shared_attributes, $post );
    260: $shared_attributes = (array) apply_filters( 'algolia_post_' . $post->post_type . '_shared_attributes', $shared_attributes, $post );
    299: $settings = (array) apply_filters( 'algolia_posts_index_settings', $settings, $this->post_type );
    300: $settings = (array) apply_filters( 'algolia_posts_' . $this->post_type . '_index_settings', $settings );
    314: $synonyms = (array) apply_filters( 'algolia_posts_index_synonyms', array(), $this->post_type );
    315: $synonyms = (array) apply_filters( 'algolia_posts_' . $this->post_type . '_index_synonyms', $synonyms );
    341: return apply_filters( 'algolia_get_post_object_id', $post_id . '-' . $record_index, $post_id, $record_index );
    
    includes/indices/class-algolia-terms-index.php
    78:  return (bool) apply_filters( 'algolia_should_index_term', $should_index, $item );
    106: $record = (array) apply_filters( 'algolia_term_record', $record, $item );
    107: $record = (array) apply_filters( 'algolia_term_' . $item->taxonomy . '_record', $record, $item );
    143: $settings = (array) apply_filters( 'algolia_terms_index_settings', $settings, $this->taxonomy );
    144: $settings = (array) apply_filters( 'algolia_terms_' . $this->taxonomy . '_index_settings', $settings );
    158: return (array) apply_filters( 'algolia_terms_index_synonyms', array() );
    
    includes/indices/class-algolia-searchable-posts-index.php
    108: return (bool) apply_filters( 'algolia_should_index_searchable_post', $should_index, $post );
    145: $post_content = apply_filters( 'algolia_searchable_post_content', $post->post_content, $post );
    146: $post_content = apply_filters( 'the_content', $post_content );
    168: $records = (array) apply_filters( 'algolia_searchable_post_records', $records, $post );
    169: $records = (array) apply_filters( 'algolia_searchable_post_' . $post->post_type . '_records', $records, $post );
    197: $shared_attributes['post_excerpt']        = apply_filters( 'the_excerpt', $post->post_excerpt );
    243: $shared_attributes = (array) apply_filters( 'algolia_searchable_post_shared_attributes', $shared_attributes, $post );
    244: $shared_attributes = (array) apply_filters( 'algolia_searchable_post_' . $post->post_type . '_shared_attributes', $shared_attributes, $post );
    279: 'content:' . intval( apply_filters( 'excerpt_length', 55 ) ),
    284: $settings = (array) apply_filters( 'algolia_searchable_posts_index_settings', $settings );
    298: $synonyms = (array) apply_filters( 'algolia_searchable_posts_index_synonyms', array() );
    322: return apply_filters('algolia_get_post_object_id', $post_id . '-' . $record_index, $post_id, $record_index );
    
    includes/indices/class-algolia-users-index.php
    57:	 return (bool) apply_filters( 'algolia_should_index_user', $should_index, $item );
    96:  $record = (array) apply_filters( 'algolia_user_record', $record, $item );
    133: return (array) apply_filters( 'algolia_users_index_settings', $settings );
    145: return (array) apply_filters( 'algolia_users_index_synonyms', array() );
    
    includes/class-algolia-autocomplete-config.php
    174: $config = (array) apply_filters( 'algolia_autocomplete_config', $config );
    
    includes/class-algolia-plugin.php
    262: $in_footer = (bool) apply_filters( 'algolia_load_scripts_in_footer', false );
    344: $searchable_post_types = (array) apply_filters( 'algolia_searchable_post_types', $searchable_post_types );
    376: $this->indices = (array) apply_filters( 'algolia_indices', $this->indices );
    395: $this->changes_watchers = (array) apply_filters( 'algolia_changes_watchers', $this->changes_watchers );
    480: return (string) apply_filters( 'algolia_templates_path', 'algolia/' );
    
    includes/class-algolia-template-loader.php
    69:  'input_selector' => (string) apply_filters( 'algolia_autocomplete_input_selector', "input[name='s']:not('.no-autocomplete')" ),
    85:  $config = (array) apply_filters( 'algolia_config', $config );
    217: $locations = (array) apply_filters( 'algolia_template_locations', $locations, $file );
    221: $default_template = (string) apply_filters( 'algolia_default_template', $this->plugin->get_path() . '/templates/' . $file, $file );
    
    includes/class-algolia-settings.php
    103: $blacklist = (array) apply_filters( 'algolia_post_types_blacklist', array( 'nav_menu_item' ) );
    147: return (array) apply_filters( 'algolia_get_synced_indices_ids', $ids );
    159: return (array) apply_filters( 'algolia_taxonomies_blacklist', array( 'nav_menu', 'link_category', 'post_format' ) );
    228: return (bool) apply_filters( 'algolia_should_override_search_with_instantsearch', $value );
    240: return (string) apply_filters( 'algolia_native_search_index_id', 'searchable_posts' );
    
    includes/class-algolia-search.php
    87:  return (bool) apply_filters('algolia_should_filter_query', $should_filter, $query );
    133: $params = apply_filters('algolia_search_params', array('attributesToRetrieve' => 'post_id', 'hitsPerPage' => (int) get_option( 'posts_per_page' ), 'page' => $current_page - 1, 'highlightPreTag' => '<em class="algolia-search-highlight">', 'highlightPostTag' => '</em>', ) );
    144: $order_by = apply_filters( 'algolia_search_order_by', null );
    145: $order    = apply_filters( 'algolia_search_order', 'desc' );
    247: if ( ! apply_filters( 'algolia_search_highlighting_enable_bundled_styles', true ) ) {
    357: return apply_filters( 'algolia_search_highlighting_enabled', true );
    
    includes/class-algolia-api.php
    88: $integration_name    = (string) apply_filters( 'algolia_ua_integration_name', 'WordPress' );
    89: $integration_version = (string) apply_filters( 'algolia_ua_integration_version', ALGOLIA_VERSION );
    
    includes/class-algolia-utils.php
    125: $sizes = (array) apply_filters( 'algolia_post_images_sizes', array( 'thumbnail' ) );
    140: return (array) apply_filters( 'algolia_get_post_images', $images );
    195: $noise_patterns = (array) apply_filters( 'algolia_strip_patterns', $noise_patterns );
    
    includes/watchers/class-algolia-post-changes-watcher.php
    148: $keys = (array) apply_filters( 'algolia_watch_post_meta_keys', $keys, $object_id );
    
    classmap.php
    16:if ( apply_filters( 'algolia_should_require_search_client', true ) ) {
    
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Hook/Filter Reference to make child changes’ is closed to new replies.