|
Mar
19 |
|
awarded | Student |
|
Mar
29 |
|
comment |
Converting a simple plugin to be placed inside of functions.php Just to confirm setup_theme and after_setup_theme both work fine, but as this function will be used on the fly, init sounds like the best candidate. Thanks for the responses guys, this has helped me understand WordPress hooks even better!
|
|
Mar
29 |
|
awarded | Scholar |
|
Mar
29 |
|
accepted | Converting a simple plugin to be placed inside of functions.php |
|
Mar
29 |
|
comment |
Converting a simple plugin to be placed inside of functions.php This worked. I used add_action('init', 'initialize_custom_image_sizes'); Tried voting you up but I need more reputation. Thanks a lot for your help, highly appreciated!
|
|
Mar
29 |
|
comment |
Converting a simple plugin to be placed inside of functions.php Where would I call this? Sorry to sound dim! Thanks for the fast answer. Would add_action('the_post', 'initialize_custom_image_sizes'); work?
|
|
Mar
29 |
|
asked | Converting a simple plugin to be placed inside of functions.php |