Comments (9)
Can you please provide me with some code and explain what you're trying to achieve.
from arlima.
Very simple content add... It is working in older versions of Arlima.
function my_special_content( $data )
{
$data['content'] .= ' - Testing content add.';
return $data;
}
add_filter( 'arlima_article_content', 'my_special_content' );
from arlima.
That's odd... Does the article have any content at all? It will not be rendered if it's considered to be empty (missing title, content, image and child articles)
from arlima.
Well there is content but the effect is nothing and the filter is not executed at all :-(
But if I go into TemplateObjectCreator, line 195 and modifies the filter request directly it is ok. Seems like the filter doesn't execute?
from arlima.
What changes did you do on line 195?
from arlima.
Just for test:
$obj['html_content'] = 'testing'; //$this->applyFilter('arlima_article_content', $article_counter, $article, $post, $article['content']);
from arlima.
Something with the facade?
$filtered_data = Arlima_CMSFacade::load()->applyFilters($filter, $data);
It seems like WordPress filter isn't executing at all :-(
from arlima.
Simple! It was a filter with widget suffix, arlima_template_content-widget.
I'm using lists inside widgets.
from arlima.
Maybe it would be good if the inputs in the widget form has some explanations. It's easy to forget about the filter suffix.
from arlima.
Related Issues (20)
- Scheduling time mismatch HOT 6
- https
- Remove backwards compatibility
- New Streamer - Pre HOT 4
- UI-issues with the version dropdown menu HOT 2
- Broken JavaScript flow in admin panel when there's no format registered HOT 2
- 3.1 Release - Test list HOT 3
- Scheduled list versions that are added and then deleted will still get published HOT 4
- Total social share HOT 4
- Add support for having the title size slider active without the html_title field HOT 4
- Preview of an article HOT 10
- Current version of Arlima (3.1.beta.27) is not installable HOT 16
- Template with two posts side by side HOT 2
- Custom arlima-postbox
- Search / drag & drop to new truncates content HOT 6
- Pufftagg HOT 8
- Error install HOT 5
- Error on activation HOT 1
- Create custom streamers HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from arlima.