stuartobrien
Forum Replies Created
-
Forum: Plugins
In reply to: [Simply Show Hooks] Can't see half of pageThe scrollable frame that partly covers your site is showing every single Action and Filter hook. While you’re looking at this you needn’t see you website as there are a very large amount of filters that get called recursively. You can choose to see just the Actions on their own (first option in the menu) in which case you won’t see the scrollable cover frame full of Filters, just the Action hooks as they occur in the page.
Hope this helps
Forum: Plugins
In reply to: [Simply Show Hooks] how to disable it for admin (dashboard) area?Cool idea about the frontend/backend active filters. I’ve added them when you next update.
simply_show_hooks_active simply_show_hooks_backend_active simply_show_hooks_frontend_active
- This reply was modified 8 years, 2 months ago by stuartobrien.
- This reply was modified 8 years, 2 months ago by stuartobrien.
Forum: Plugins
In reply to: [Simply Show Hooks] "Show Action Hooks" jumps to wrong post typeThis will be fixed in the next update ??
Forum: Plugins
In reply to: [Simply Show Hooks] "Show Action Hooks" jumps to wrong post typeThanks,
I see this behavior that you are referring to and will see if I can fix this.In the mean time users can manipulate the URL (as you kindly said), or press ‘back’ in the browser, to get back to where you were.
Thanks kindly for letting me know ??
Forum: Plugins
In reply to: [Simply Show Hooks] What do colors meanColors:
Green = Action Hook (‘A’ in the label)
Red = Filter Hook (‘F’ in the label)
(anyone who’s not sure about what these are can start their reading in the awesome WP docs here https://codex.www.ads-software.com/Plugin_API)
The hook label will turn dark when there are functions attached to a specific Action or Filter hook, and a small red number will appear in the corner showing how many functions are attached. You can then hover over these darker hook labels to see the names of the function that are attached to them. This is a super useful resource to be able to get this code insight visually, on the fly.Search:
I have chosen to rely on the browser search (Chrome, FireFox, etc) to quickly find and jump to specific Action or Filter Hook as it’s perfectly suited to this. Anything more might be overkill. (cmd/ctrl + F in Chrome)Hope this helps.
(Apologies for the very late reply)
Forum: Plugins
In reply to: [Simply Show Hooks] Keeping it up to date?Hi Peter,
From this day forward I am able to dedicate time to keeping it up to date and well supported.Forum: Plugins
In reply to: [Simply Show Hooks] Theme customizer?You could first switch on Hooks display from the wp-admin (Simply-Show-Hooks > Show-Action-Hooks) then after that switch over to Customizer to see the hooks, then back to wp-admin to switch it off when you’re done. There may be some hooks that get hidden behind very complex JS interfaces.
Forum: Plugins
In reply to: [Simply Show Hooks] Cookie name causing issues with WooCommerceHi,
That is a coincidence. I def don’t want to collide with WooCommerce so I will change that. Thanks for spotting it, and for your concise feedback.
Keep an eye out for the update (early next week).
StuartForum: Reviews
In reply to: [Simply Show Hooks] Brilliant for any WordPress DeveloperHey Leo. Thanks for the props ??
Forum: Plugins
In reply to: [WordPress Social Login] Asking for too many Facebook permissions to log in@shibbymintay – Thanks for your post. It seems though that you are referring to solving the problem of getting yourself logged in, however what is needed is to not ask for the extra permission in the first place so that other users don’t decide to to leave due to too many permissions asked – a strategy that even FB have warned against in their guide.
I have solved this problem by hacking the plugin, and will share it, but remember that changes will get overwritten when updating the plugin, so obviously would prefer this to become an option in the plugin.
hack
file: includes/services/wsl.authentication.php
line 169: //$config[“providers”][$provider][“scope”] = “email, user_about_me, user_birthday, user_hometown, user_website”;
line 170: $config[“providers”][$provider][“scope”] = “email”;Forum: Plugins
In reply to: [Social Connect] FB not working for FirefoxForum: Plugins
In reply to: [WordPress Social Login] Asking for too many Facebook permissions to log insame issue. I don’t want to ask for all those permissions. as few as possible is best. can there be setting in the plugin to ask for the extras if you want. I presume they are being used to feed into the plugins user insights. but now there are just too many permissions being asked.
Will be the perfect plugin if this gets sorted. ThanksGreat plugin!
Thanks for the question above djvern. I need the same things as above.
My first question though is if the above works?
'post_type' => array('events', 'exhibitions')
I don’t believe that the constructor function takes and array argument for the ‘post’ type. It only takes one at a time, so you need to register one MultiPostThumbnail for each post type. Chris, is this correct?
Second question/request is for Chris if the plugin could be made to take an array, so it can register for multiple post types?
Third question/request is the same as above, that the template function could be made to work without needing to specify the post type.
I am building a Homepage Slider that pulls from 3 post types, and I now have to check for each image individually.
if ( class_exists('MultiPostThumbnails') ){ $img_src = MultiPostThumbnails::get_post_thumbnail_url('radio-shows','slider-image'); if(!$img_src) MultiPostThumbnails::get_post_thumbnail_url('artists','slider-image'); if(!$img_src) MultiPostThumbnails::get_post_thumbnail_url('news','slider-image'); } if ( !$img_src ){ $img_object = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'thumbnail' ); $img_src = $img_object['0']; }
Thanks.