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
↓ 42 callers
Method
die_failure
( $error, $error_text, $response_code = 400 )
inc/api-base.php:11
↓ 27 callers
Function
toInt
(argumentForCoercion)
js/utils/moment.js:490
↓ 15 callers
Method
get_fragment
* Figures out if $data looks like a post or a comment, and gives you * a Fragment either way. */
inc/fragment.php:12
↓ 15 callers
Method
parse_time
* Convert a time string into an epoch timestamp * * @param string $date_string - Any valid strtotime string * @param int $time (optional) - Epoc
modules/time-shortcode/load.php:74
↓ 14 callers
Function
leftZeroFill
(number, targetLength)
js/utils/moment.js:357
↓ 13 callers
Method
die_success
( $response, $response_code = 200 )
inc/api-base.php:5
↓ 12 callers
Method
should_process_terms
* @return boolean true if we should process TiC on this site */
inc/terms-in-comments.php:22
↓ 10 callers
Function
getLangDefinition
(key)
js/utils/moment.js:785
↓ 9 callers
Function
extend
Helpers
js/utils/moment.js:329
↓ 9 callers
Function
normalizeUnits
(units)
js/utils/moment.js:422
↓ 8 callers
Function
absRound
(number)
js/utils/moment.js:347
↓ 8 callers
Function
o2_register_post_action_states
( $action, $states_array )
inc/template-tags.php:8
↓ 6 callers
Method
get_comment_meta
* get_comment_meta() * * Queries comments based upon post id and meta key * * @param array $args Arguments to modify the query * 'number'
inc/terms-in-comments.php:109
↓ 6 callers
Method
get_state_slugs
* Get the state slugs in the carousel * * @return array An ordered array of the state slugs */
modules/to-do/load.php:128
↓ 6 callers
Function
o2_format_date
( date, format )
modules/time-shortcode/js/time-shortcode.js:10
↓ 5 callers
Method
find_tags
( $content, $htmlified = true )
inc/tags.php:273
↓ 5 callers
Method
get_defaults
()
o2.php:552
↓ 5 callers
Method
get_post_tags
* Wrapper for wp_get_post_tags() with static cache. */
inc/fragment.php:587
↓ 5 callers
Method
has_widget
( $widget_base, $area = '', $args = array() )
inc/widget-helper.php:170
↓ 5 callers
Method
refresh
()
inc/widget-helper.php:13
↓ 4 callers
Method
add_to_user_bootstrap
( $user_data )
inc/fragment.php:462
↓ 4 callers
Function
adjust
()
js/editor/jquery.autoresize.js:158
↓ 4 callers
Method
bump_comment_modified_time
* Will update the comment modified time to reflect the current time for polling. * * @param $comment_ID */
inc/fragment.php:714
↓ 4 callers
Method
current_user_can_edit_checklist
( $object_type, $object_ID )
modules/checklists/load.php:84
↓ 4 callers
Function
each
* Helper function for iterating over a collection * * @param collection * @param fn
js/utils/enquire.js:32
↓ 4 callers
Method
find_xposts
( $content )
inc/xposts.php:258
↓ 4 callers
Method
get_application_container
()
o2.php:512
↓ 4 callers
Method
get_comment_author_properties
( $_comment )
inc/fragment.php:525
↓ 4 callers
Method
get_depth_for_comment
( $my_comment )
inc/fragment.php:401
↓ 4 callers
Method
get_first_state_slug
* Get the first state object in the carousel * * @return object The first state object */
modules/to-do/load.php:91
↓ 4 callers
Method
get_fragment_from_post
* Returns an entry array for the specified conversation fragment * where fragment_type is 'post' or 'comment' */
inc/fragment.php:37
↓ 4 callers
Method
get_model_from_userdata
( $user_data )
inc/fragment.php:477
↓ 4 callers
Method
get_post_terms
* Returns an array of the posts's taxonomy terms */
inc/fragment.php:600
↓ 4 callers
Method
has_approved_child
* Returns true if comment has approved child. * * @param $comment_ID * * @return bool */
o2.php:1255
↓ 4 callers
Method
settings_merge
* Logic to merge option/default arrays */
o2.php:602
↓ 4 callers
Function
weekOfYear
(mom, firstDayOfWeek, firstDayOfWeekOfYear)
js/utils/moment.js:1448
↓ 3 callers
Function
addOrSubtractDurationFromMoment
(mom, duration, isAdding, ignoreUpdateOffset)
js/utils/moment.js:366
↓ 3 callers
Method
add_line_hash
( $line_hash )
modules/checklists/load.php:495
↓ 3 callers
Method
add_new_widget
( $base, $multiwidget, $settings, $area = '' )
inc/widget-helper.php:66
↓ 3 callers
Method
bump_post
* Update post for polling (without creating a revision) * Useful for sticky state change, resolved state change, etc. */
inc/fragment.php:683
↓ 3 callers
Method
clear_line_hashes
()
modules/checklists/load.php:491
↓ 3 callers
Function
dateFromConfig
(config)
js/utils/moment.js:1092
↓ 3 callers
Method
get_app_controls
()
o2.php:492
↓ 3 callers
Method
get_current_user_properties
()
inc/fragment.php:419
↓ 3 callers
Method
get_next_state_slug
* Get the next state object in the carousel * * @param string The state slug * @return object The next state object */
modules/to-do/load.php:118
↓ 3 callers
Method
get_post_state_slug
* Get a post state * * @param int The post ID * @return string The post's set state object, or the default first state object */
modules/to-do/load.php:243
↓ 3 callers
Method
get_post_user_properties
( $_post )
inc/fragment.php:505
↓ 3 callers
Method
hash_line
( $content_line )
modules/checklists/load.php:215
↓ 3 callers
Function
isArray
(input)
js/utils/moment.js:398
↓ 3 callers
Method
is_mobile
* Returns true if the user agent is recognized as a mobile device (or a tablet) */
o2.php:1175
↓ 3 callers
Method
is_tablet
* Returns true if the user agent is recognized as a tablet */
o2.php:1183
↓ 3 callers
Function
makeDateFromStringAndFormat
(config)
js/utils/moment.js:1202
↓ 3 callers
Function
makeGlobal
Exposing Moment
js/utils/moment.js:2272
↓ 3 callers
Function
normalizeLanguage
(key)
js/utils/moment.js:571
↓ 3 callers
Function
o2_get_comment_actions
( $location, $comment, $comment_depth )
inc/template-tags.php:310
↓ 3 callers
Method
query
* Multipurpose action hook for plugins */
inc/read-api.php:444
↓ 3 callers
Method
show_comments_initially
()
o2.php:516
↓ 3 callers
Method
site_suggestions
* Generates an array of site information that can be used for the +mentions autocomplete feature * * @return array Site Information. */
inc/xposts.php:50
↓ 3 callers
Method
to_utf8
( $var )
inc/fragment.php:667
↓ 3 callers
Function
zero_prefix
( n )
modules/time-shortcode/js/time-shortcode.js:14
↓ 2 callers
Method
__construct
()
modules/checklists/load.php:41
↓ 2 callers
Function
checkOverflow
(m)
js/utils/moment.js:517
↓ 2 callers
Method
close_list
()
modules/checklists/load.php:283
↓ 2 callers
Function
compareArrays
(array1, array2, dontConvert)
js/utils/moment.js:408
↓ 2 callers
Method
completely_close_list
()
modules/checklists/load.php:314
↓ 2 callers
Method
create_post
* Create new post on target P2-themed site * Uses the permalink of the source post for the content and title of the new post * * @param int $_bl
inc/xposts.php:449
↓ 2 callers
Function
dayOfYearFromWeeks
(year, week, weekday, firstDayOfWeekOfYear, firstDayOfWeek)
js/utils/moment.js:1470
↓ 2 callers
Function
daysInMonth
(year, month)
js/utils/moment.js:505
↓ 2 callers
Function
daysInYear
(year)
js/utils/moment.js:509
↓ 2 callers
Method
disable_highlander
()
o2.php:168
↓ 2 callers
Function
expandFormat
(format, lang)
js/utils/moment.js:881
↓ 2 callers
Function
formatMoment
(m, format)
js/utils/moment.js:866
↓ 2 callers
Method
gather_all_tags
( $post )
inc/tags.php:375
↓ 2 callers
Method
generate_title
( $message )
inc/write-api.php:216
↓ 2 callers
Function
get
(k)
js/utils/moment.js:787
↓ 2 callers
Method
get_audit_log_fragment
* Get an audit log fragment for a single audit log * * @param array Arguments for the audit log * @return array A formatted audit log fragment
modules/to-do/load.php:428
↓ 2 callers
Method
get_details_from_subdomain
( $subdomain )
inc/xposts.php:197
↓ 2 callers
Method
get_fragment_from_comment
( $my_comment )
inc/fragment.php:284
↓ 2 callers
Method
get_fragment_from_post
* Get a resolved post fragment * * @param object Post object * @param string Current post state slug * @param string The ID of the widget that
modules/to-do/inc/class-to-do-widget.php:407
↓ 2 callers
Method
get_mention_data
* Returns a list of an array of the mentions within the content, as well as the mention context fragment * @param string $object_type The object typ
inc/fragment.php:643
↓ 2 callers
Method
get_post_tags_array
( $post_tags )
inc/fragment.php:570
↓ 2 callers
Method
get_post_tags_raw
* Returns a raw string of comma delimited tags, suitable for editing (e.g. tag1, tag2, tag3) */
inc/fragment.php:553
↓ 2 callers
Method
get_view_type
* Returns what type of 'view'/'page' is being returned by WordPress (home, single, search, etc) */
o2.php:691
↓ 2 callers
Function
initializeParsingFlags
(config)
js/utils/moment.js:537
↓ 2 callers
Function
isLeapYear
(year)
js/utils/moment.js:513
↓ 2 callers
Function
isValid
(m)
js/utils/moment.js:552
↓ 2 callers
Method
is_enabled
* Check if o2 is active on the current site. */
o2.php:1380
↓ 2 callers
Method
is_ok_to_add
* Checks if a post is OK to add before adding to posts array in get_posts method * * @param WP_Post $post * * @return boolean True if post is
inc/read-api.php:246
↓ 2 callers
Method
list_item
( $bullet, $item_text, $content_line )
modules/checklists/load.php:244
↓ 2 callers
Function
makeDurationAsGetter
(name, factor)
js/utils/moment.js:2231
↓ 2 callers
Function
makeGetterAndSetter
(name, key)
js/utils/moment.js:2072
↓ 2 callers
Function
makeMoment
Top Level Functions
js/utils/moment.js:1488
↓ 2 callers
Function
normalizeObjectUnits
(inputObject)
js/utils/moment.js:430
↓ 2 callers
Method
open_list
( $contains_checkable_items )
modules/checklists/load.php:219
↓ 2 callers
Function
padToken
(func, count)
js/utils/moment.js:253
↓ 2 callers
Function
parseWeekday
(input, language)
js/utils/moment.js:1388
↓ 2 callers
Method
parse_lists
( $content )
modules/checklists/load.php:107
↓ 2 callers
Method
preserve_text
( $text )
modules/checklists/load.php:194
↓ 2 callers
Method
remove_widget_instances
( $widget_base, $area = '' )
inc/widget-helper.php:148
↓ 2 callers
Method
required_comment_fields
* Add the required strings for logged out commenters */
o2.php:588
next →
1–100 of 488, ranked by callers