Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
A type of hook that provides a way for content to be overridden programatically
0
votes
Add filter unless it is being called under specific function
Here's what I ended up doing:
<?php
add_filter( 'get_the_excerpt', 'wp_trim_excerpt' );
function wp_trim_excerpt( $text ) {
remove_filter( 'the_content', 'my_content_filter' );
$text = appl …
0
votes
2
answers
69
views
Add filter unless it is being called under specific function
I want to add a filter ... but not if it that filter is called by a specific function. Here's a simplified example:
<?php
add_filter( 'get_the_excerpt', 'wp_trim_excerpt' );
function wp_trim_excerpt …