Giang Le
Forum Replies Created
-
Forum: Plugins
In reply to: [Easy Watermark] Exclude image with low width?@kubitomakita Thanks for your reply! No it does not execute the filter (code did not run). I am not so sure what $meta is (your code….) but I suppose it has value with $meta = wp_get_attachment_metadata($attachment_id); –> $meta[‘width’]
Forum: Plugins
In reply to: [Easy Watermark] Watermarking only if size is bigger than X@kubitomakita How can we use that filter? E.g exclude apply watermark for images which has width <= 200px (too small).
Br,
Found solution (drawback: we cannot crop again)
Return array, then find ID of orignal image and delete
$delete_ID = $image_arr['original_image']['ID']; wp_delete_attachment( $delete_ID, true );
Hey guys,
Do we have any solution for this?
Br,
Forum: Plugins
In reply to: [WP Search with Algolia] Number of Results and Pagination?@tw2113 Cool! I am looking forward to that. You may have a settings for Load more on Pagination and number of results…(I saw Ajax Search Pro integrated this feature quite well in their search result window)
Forum: Plugins
In reply to: [WP Search with Algolia] Number of Results and Pagination?@tw2113 The search in Title is just for example…What I want is to show ALL result not to limit them. E.g: There are 24 results then the search result of Algolia will show 10 and has an AJAX pagination in result window for others (Page: 1 – 2 – 3).
Br,
Forum: Plugins
In reply to: [WP Search with Algolia] Number of Results and Pagination?@tw2113 E.g I have 25 posts contain ‘keyword’ in title, so I just want so 10 result in the list and pagination 1-2-3 at bottom of result window…
Forum: Plugins
In reply to: [WP Search with Algolia] Number of Results and Pagination?@tw2113 Still looking for the solution here :D. Could you please guide me the direction for this?
Many thanks!
@misulicus I see, thank you! ??
Forum: Plugins
In reply to: [GamiPress - Youtube integration] How to Inform user?@rubengc Thank you! (sorry for late reponse ;))
Forum: Plugins
In reply to: [Force Refresh] Refresh after post changing status, created, updated…Thank you! I go with Heartbeat API.
Br,
@joppuyo Do you have any update on that or guide me a little to delete programmatically after crop (hook…).
Many thanks!
@wacha Use _thumbnail_id as your field’s name ??
@codersantosh So cool! Many thanks!
For those who seeking same question, this is the answer (with helpful support from Author, many thanks!)
/**
* Add Own Templates
*
* @param array $templates_list
* List of the Templates
*
* @return array
*/
function prefix_add_own_templates( $templates_list ) {$my_templates_list = array(
array(
‘title’ => __( ‘Title of Block’, ‘text-domain’ ),/*Title*/
‘type’ => ‘block’,/*either template or block*/
‘author’ => __( ‘Author’, ‘text-domain’ ),/*Author Name*/
‘keywords’ => array( ‘about-block’, ‘about 3’ ),/*Search keyword*/
‘categories’ => array( ‘about’ ),/*Categories*/
‘template_url’ => ‘https://demo.it24.vn/oxygen/wp-content/uploads/core_buttons.json’,/*Json file url */
‘screenshot_url’ => ‘https://demo.it24.vn/oxygen/wp-content/uploads/2020/09/03.png’,/*Screenshot of block*/
‘demo_url’ => ‘https://demo.it24.vn/oxygen/’,/*Demo Url*/
)
);
return array_merge( $my_templates_list, $templates_list );
}
add_filter(‘gutentor_advanced_import_templates’,’prefix_add_own_templates’);