Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Automattic/o2
/ functions
Functions
488 in github.com/Automattic/o2
⨍
Functions
488
◇
Types & classes
37
Method
__construct
()
inc/tags.php:18
Method
__construct
()
inc/keyboard.php:3
Function
_manually_load_plugin
()
tests/phpunit/bootstrap.php:10
Method
_sortByLength
( $a, $b )
inc/tags.php:255
Method
add_json_data
* Embed JSONified post+comment data into each thread (post) for backbone consumption */
o2.php:894
Method
add_post_action
* Add a link for changing the post sticky to the o2 post actions * * @param array The current o2 post actions * @return array The filtered o2 po
modules/sticky-posts/load.php:96
Method
add_post_action
* Add a link for changing the post resolution to the o2 post actions * * @param array The current o2 post actions * @return array The filtered o
modules/to-do/load.php:365
Method
add_stop_following
* If the current user isn't following all the comments on the blog, add hoverText that * prompts them that they can unfollow comments on a post they
modules/post-actions/load.php:219
Method
add_trashed_parents
* When un-trashing a comment, traverse through this comment's parents and * add o2_comment_has_children flag where needed. * * @param $comment_I
o2.php:1268
Method
admin_enqueue_scripts
( $hook )
o2.php:1023
Method
after_post_actions
( $html )
modules/post-actions/load.php:55
Method
after_post_likes
( $content )
modules/post-actions/load.php:110
Method
ajax_get_o2_userdata
()
o2.php:1330
Method
append_old_tags
* Appends the tags of old posts to the end of the post * * @uses global $post, so must be run from inside the loop * * @param string $content
inc/tags.php:45
Method
append_old_tags_to_fragment
* Appends the tags of old posts to the end of the post, for o2 fragments * * @param string $fragment The fragment * @return string The fragment
inc/tags.php:119
Method
attachment_redirect
* Redirect to attachments. Rather than trying to render them somehow, * if someone links to an "attachment page", just intercept that and send * t
o2.php:991
Method
before_post_actions
( $html )
modules/post-actions/load.php:49
Method
before_post_likes
( $content )
modules/post-actions/load.php:78
Method
body_class
* Adds an 'o2' class to the body. */
o2.php:531
Method
callback
* Main AJAX callback * * @param object The post fragment object */
modules/sticky-posts/load.php:120
Method
callback
* Main AJAX callback * * Determine if a post's next state is valid, set it, and return the audit log fragment as success, or * an error message
modules/to-do/load.php:520
Function
clearPlaceholder
( event, value )
js/utils/jquery.placeholder.js:100
Method
comment_fail
* Handle a variety of hard comment posting failures. See ::init_comment() for the list * of actions that trigger this. */
inc/write-api.php:299
Method
comment_fail
* Handle a variety of hard comment posting failures. See ::init_comment() for the list * of actions that trigger this. */
inc/nopriv-write-api.php:69
Method
comment_success
* Called from the end of the core commenting process. If we get here * then the comment was posted successfully, so just output it and die. */
inc/write-api.php:401
Method
comment_success
* Called from the end of the core commenting process. If we get here * then the comment was posted successfully, so just output it and die. */
inc/nopriv-write-api.php:111
Method
customize_register
* Set up options for Customizer */
o2.php:644
Method
delete_comment_override
* Create a new comment with message "This comment has been permanently deleted." * and put it in place of deleted comment. * * @param $comment_I
o2.php:1201
Method
do_comment_time_shortcode
* Process the time shortcode and only the time shortcode in comments * * @param string $comment_text - The comment content * @return string Modi
modules/time-shortcode/load.php:104
Method
embed_templates
* Pass templates up for backbone to use when rendering * @todo only do this on pages where we are going to use them * @todo put these in a separat
inc/templates.php:34
Method
enqueue_scripts
()
modules/notifications/load.php:24
Method
enqueue_scripts
()
modules/post-actions/load.php:43
Method
enqueue_scripts
()
modules/sticky-posts/load.php:27
Method
enqueue_scripts
()
modules/recent-comments/load.php:26
Method
enqueue_scripts
()
modules/checklists/load.php:48
Method
enqueue_scripts
()
modules/to-do/load.php:62
Method
enqueue_scripts
()
modules/to-do/inc/class-to-do-widget.php:33
Method
enqueue_scripts
()
modules/offline/load.php:10
Method
enqueue_scripts
()
modules/suggestions/load.php:19
Method
enqueue_scripts
()
modules/follow/load.php:18
Method
enqueue_style
()
modules/notifications/load.php:36
Method
enqueue_style
()
modules/sticky-posts/load.php:34
Method
enqueue_style
()
modules/checklists/load.php:56
Method
enqueue_style
()
modules/to-do/load.php:69
Method
enqueue_style
()
modules/follow/load.php:24
Method
enqueue_styles
()
modules/post-actions/load.php:37
Function
extend
(protoProps, classProps)
js/utils/cocktail.js:59
Method
fetch
* Get resolved post fragments and return them via AJAX */
modules/to-do/inc/class-to-do-widget.php:327
Method
filter_comment_actions
( $actions, $location, $comment, $comment_depth )
modules/post-actions/load.php:163
Method
filter_options
( $options )
modules/checklists/load.php:179
Method
filter_post_action_html
( $html, $action )
modules/post-actions/load.php:60
Method
filter_resolved_posts_audit_log_entry
( $log_entry, $args )
modules/post-actions/load.php:148
Method
filter_sort
( $filter_1, $filter_2 )
modules/filter-widget/load.php:73
Method
filter_widget_filters
( $filters )
modules/to-do/load.php:276
Method
filter_xcomment_permalink
Filter xcomment permalinks to point immediately at the originating comment (and not rely on redirect_permalink, since we can't see the comment fragmen
inc/xposts.php:593
Method
filter_xposts
( $xposts )
inc/xposts.php:270
Method
first_load
* This is really only needed for the first load of o2 after activation. * Useful for flushing rewrite rules, and that kind of thing. */
o2.php:1397
Method
form
($instance)
modules/filter-widget/load.php:171
Method
form
($instance)
modules/live-comments/load.php:104
Method
form
* Form for the widget settings */
modules/to-do/inc/class-to-do-widget.php:47
Function
genChar
(c)
js/utils/uuid4.js:11
Method
get_adjacent_post_where
* Used in get_fragment_from_posts, avoids us picking up password protected posts * in prev / next post navigation */
inc/fragment.php:29
Method
get_adjacent_post_where
Until WP 3.8 is widespread, this is a quick, easy, nasty way of avoiding xposts in navigation. See http://core.trac.wordpress.org/ticket/17807#comment
inc/xposts.php:123
Method
get_last_state_slug
* Get the last state object in the carousel * * @return object The last state object */
modules/to-do/load.php:104
Method
get_options
* Add notification strings to the o2 options array */
modules/notifications/load.php:98
Method
get_options
* Add sticky states to the o2 options array */
modules/sticky-posts/load.php:43
Method
get_options
( $options )
modules/offline/load.php:14
Method
get_options
* Add follow strings and options to the o2 options array */
modules/follow/load.php:33
Method
get_post_fragment
* Add sticky meta for each post to the o2 post fragment */
modules/sticky-posts/load.php:58
Method
get_post_fragment
* Add state and audit logs for each post to the o2 post fragment */
modules/to-do/load.php:260
Method
get_templates
* Add the dock and flash templates to the o2 templates */
modules/notifications/load.php:45
Method
get_templates
* Add the audit log template to the o2 templates */
modules/to-do/load.php:309
Method
get_templates
* Add the templates to the o2 templates filter * * If you have more than a few templates, use the o2_Fragment class as a pattern for loading exter
modules/to-do/inc/class-to-do-widget.php:171
Method
has_active_widgets
()
inc/widget-helper.php:57
Method
help_link
( $controls )
inc/keyboard.php:14
Method
help_text
()
inc/keyboard.php:19
Method
home_url
* Filter the home_url() for permalinks generated during AJAX calls. * When is_admin() is true, permalinks will not reflect the protocol * of the a
inc/fragment.php:725
Method
infinite_scroll_ajax_url
( $ajax_url )
modules/recent-comments/load.php:65
Method
infinite_scroll_ajax_url
* Make this compatible with Infinite Scroll, which we use for loading pages * @props tmoorewp */
modules/to-do/load.php:144
Method
infinite_scroll_ajax_url
( $ajax_url )
modules/unreplied-posts/load.php:64
Method
infinite_scroll_allowed_vars
( $vars )
modules/unreplied-posts/load.php:56
Method
infinite_scroll_query_args
( $query_args )
modules/recent-comments/load.php:72
Method
infinite_scroll_query_args
( $query_args )
modules/to-do/load.php:155
Method
infinite_scroll_query_args
( $query_args )
modules/unreplied-posts/load.php:45
Method
infinite_scroll_render
* Return only o2 containers with Infinite Scroll queries */
o2.php:502
Method
init
()
modules/post-actions/load.php:8
Method
init
()
modules/performance/inc/class-o2-basic-timers.php:8
Method
init
()
modules/performance/inc/class-o2-performance-monitor.php:8
Method
init
()
inc/write-api.php:4
Method
init
()
inc/nopriv-write-api.php:4
Method
inline_js
* Makes the sites available as a global JSON encoded array so we can use it with the autocomplete scripts. */
inc/xposts.php:282
Method
insert_comment_actions
* Add a timestamp named o2_comment_created so we can maintain * when the comment was created even if comment is later modified. * * @param $comm
o2.php:1244
Method
is_mentions_me_filter_active
()
modules/filter-widget/load.php:88
Method
is_my_posts_filter_active
()
modules/filter-widget/load.php:94
Method
is_no_replies_filter_active
()
modules/filter-widget/load.php:84
Method
is_recent_comments_filter_active
()
modules/filter-widget/load.php:80
Method
is_resolved_filter_active
()
modules/to-do/load.php:298
Method
is_unresolved_filter_active
()
modules/to-do/load.php:302
Function
keyHandler
( handleObj )
js/utils/jquery.hotkeys.js:40
Method
live_item_templates
()
modules/live-comments/load.php:19
← previous
next →
201–300 of 488, ranked by callers