[wp-hackers] finding a code snippet in wordpress core
Chris McCoy
chris at lod.com
Fri Jan 31 15:43:52 UTC 2014
Or just grep -r ³register_post_type² .
On 1/31/2014, 10:41 AM, "J.D. Grimes" <jdg at codesymphony.co> wrote:
>I usually run grep on my local checkout:
>
>grep -nr register_post_type( /path/to/wp
>
>-J.D.
>
>On Jan 31, 2014, at 10:34 AM, Nikola Nikolov <nikolov.tmw at gmail.com>
>wrote:
>
>> Hi,
>>
>> Well I don't about an online tool, but the thing I do when I need to
>>look
>> for something in core(and I don't already know where to find it), is to
>> simply use my text editor to search through the core files.
>>
>> What you are looking for in this case is found in /wp-includes/post.php
>>and
>> it's the function called create_initial_post_types().
>>
>> It seems like queryposts.com will be a good place to look for core code
>>and
>> functions in the future(and now), for instance you can take a look at
>> the create_initial_post_types
>> function page
>><http://queryposts.com/function/create_initial_post_types/>there.
>>
>>
>> On Fri, Jan 31, 2014 at 5:19 PM, Haluk Karamete
>><halukkaramete at gmail.com>wrote:
>>
>>> Is there an online tool where I can run queries like
>>>
>>> where on wordpress core register_post_type function is called?
>>>
>>> I'm trying to get to the section where you guys create the 'post' and
>>> 'page' post types..
>>> _______________________________________________
>>> wp-hackers mailing list
>>> wp-hackers at lists.automattic.com
>>> http://lists.automattic.com/mailman/listinfo/wp-hackers
>>>
>> _______________________________________________
>> wp-hackers mailing list
>> wp-hackers at lists.automattic.com
>> http://lists.automattic.com/mailman/listinfo/wp-hackers
>
>_______________________________________________
>wp-hackers mailing list
>wp-hackers at lists.automattic.com
>http://lists.automattic.com/mailman/listinfo/wp-hackers
More information about the wp-hackers
mailing list