Ajax content
-
Hi, I use ajax on my site, and noticed that there are no hashtags in posts uploaded via ajax.
I looked at the plugin code. In /inc/class-hashtagger.php:268, remove the_content, the_title, the_excerpt, and get_term filters from the condition.
Example:add_filter( 'the_content', array( $this, 'process_content' ), 9999 ); if ( $this->settings['sectiontype_title'] ) { add_filter( 'the_title', array( $this, 'process_title' ), 9999 ); } if ( $this->settings['sectiontype_excerpt'] ) { add_filter( 'the_excerpt', array( $this, 'process_excerpt' ), 9999 ); } if ( $this->settings['display_add_symbol_to_tag'] ) { add_filter( 'get_term', array( $this, 'add_hash_to_single_tag' ), 9999, 2 ); } if ( is_admin() ) { add_action( 'admin_head', array( $this, 'admin_css' ) ); add_action( 'admin_enqueue_scripts', array( $this, 'admin_style' ) ); add_action( 'admin_menu', array( $this, 'admin_menu' ) ); add_action( 'admin_init', array( $this, 'admin_init' ) ); add_action( 'wp_ajax_hashtagger_regenerate', array( &$this, 'admin_hashtagger_regenerate' ) ); add_action( 'admin_notices', array( $this, 'admin_notices' ) ); add_action( 'wp_ajax_pp_hashtagger_dismiss_admin_notice', array( $this, 'dismiss_admin_notice' ) ); add_action( 'admin_enqueue_scripts', array( $this, 'admin_js' ) ); }
Thanks for plugin, good luck o/
- The topic ‘Ajax content’ is closed to new replies.