122 reputation
16
bio website
location
age
visits member for 4 years, 5 months
seen 21 hours ago

May
3
comment Extending Shortcode attributes
can i use FusionSC_RecentPosts::render as old_recent_posts?
May
3
comment Extending Shortcode attributes
class FusionSC_RecentPosts{ All the code of shortcode are here } new FusionSC_RecentPosts();
May
3
awarded  Commentator
May
3
accepted Extending Shortcode attributes
May
3
comment Extending Shortcode attributes
Hmmm, another problem is this shortcode is coded by OOP technique so i couldn't access via function name. You can find logic here : 'class FusionSC_RecentPosts' wraps the shortcode and construction starts with 'public function __construct() {' After than, 'add_shortcode( "recent_posts", array( $this, "render" ) );' so render function executing to show the result/execute the WPQuery function. How can i access this function from 'functions.php' to extend it? Thanks again.
May
3
comment Extending Shortcode attributes
Let me try second one, because I've tried your first way ( wordpress.stackexchange.com/a/95971/26350 ) but no success and i didn't see any shortcode_atts support in code. Thanks..
May
3
comment Extending Shortcode attributes
@birgire Actually you're right but i don't know is this breaks the license because code seems to be coded by theme authors in custom way so i decided to try Pieter's second advise. But additionally, I'll ask to authors for code sharing, if they said no problem, I'll update question.
May
3
comment Extending Shortcode attributes
second way seems to be easier for now because i don't know when next version will be released. Thanks for help.
May
2
asked Extending Shortcode attributes
Jan
12
awarded  Supporter
Sep
12
accepted Is there any way to recover deleted menu from database sql backup
Sep
9
answered Is there any way to recover deleted menu from database sql backup
Sep
9
asked Is there any way to recover deleted menu from database sql backup
Apr
22
asked Enable Woocommerce chart, price and buying functions if only user is specific role, otherwise use as catalog
Sep
11
awarded  Notable Question
Nov
5
awarded  Popular Question
Oct
23
awarded  Popular Question
Jun
24
awarded  Student
Mar
7
comment Check is category parent or not from its ID
@Bainternet, woaw.. its perfect (and very clever idea), thank you very much...
Mar
7
accepted Check is category parent or not from its ID