MCPcopy Create free account

hub / github.com/Automattic/o2 / functions

Functions488 in github.com/Automattic/o2

↓ 42 callersMethoddie_failure
( $error, $error_text, $response_code = 400 )
inc/api-base.php:11
↓ 27 callersFunctiontoInt
(argumentForCoercion)
js/utils/moment.js:490
↓ 15 callersMethodget_fragment
* Figures out if $data looks like a post or a comment, and gives you * a Fragment either way. */
inc/fragment.php:12
↓ 15 callersMethodparse_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 callersFunctionleftZeroFill
(number, targetLength)
js/utils/moment.js:357
↓ 13 callersMethoddie_success
( $response, $response_code = 200 )
inc/api-base.php:5
↓ 12 callersMethodshould_process_terms
* @return boolean true if we should process TiC on this site */
inc/terms-in-comments.php:22
↓ 10 callersFunctiongetLangDefinition
(key)
js/utils/moment.js:785
↓ 9 callersFunctionextend
Helpers
js/utils/moment.js:329
↓ 9 callersFunctionnormalizeUnits
(units)
js/utils/moment.js:422
↓ 8 callersFunctionabsRound
(number)
js/utils/moment.js:347
↓ 8 callersFunctiono2_register_post_action_states
( $action, $states_array )
inc/template-tags.php:8
↓ 6 callersMethodget_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 callersMethodget_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 callersFunctiono2_format_date
( date, format )
modules/time-shortcode/js/time-shortcode.js:10
↓ 5 callersMethodfind_tags
( $content, $htmlified = true )
inc/tags.php:273
↓ 5 callersMethodget_defaults
()
o2.php:552
↓ 5 callersMethodget_post_tags
* Wrapper for wp_get_post_tags() with static cache. */
inc/fragment.php:587
↓ 5 callersMethodhas_widget
( $widget_base, $area = '', $args = array() )
inc/widget-helper.php:170
↓ 5 callersMethodrefresh
()
inc/widget-helper.php:13
↓ 4 callersMethodadd_to_user_bootstrap
( $user_data )
inc/fragment.php:462
↓ 4 callersFunctionadjust
()
js/editor/jquery.autoresize.js:158
↓ 4 callersMethodbump_comment_modified_time
* Will update the comment modified time to reflect the current time for polling. * * @param $comment_ID */
inc/fragment.php:714
↓ 4 callersMethodcurrent_user_can_edit_checklist
( $object_type, $object_ID )
modules/checklists/load.php:84
↓ 4 callersFunctioneach
* Helper function for iterating over a collection * * @param collection * @param fn
js/utils/enquire.js:32
↓ 4 callersMethodfind_xposts
( $content )
inc/xposts.php:258
↓ 4 callersMethodget_application_container
()
o2.php:512
↓ 4 callersMethodget_comment_author_properties
( $_comment )
inc/fragment.php:525
↓ 4 callersMethodget_depth_for_comment
( $my_comment )
inc/fragment.php:401
↓ 4 callersMethodget_first_state_slug
* Get the first state object in the carousel * * @return object The first state object */
modules/to-do/load.php:91
↓ 4 callersMethodget_fragment_from_post
* Returns an entry array for the specified conversation fragment * where fragment_type is 'post' or 'comment' */
inc/fragment.php:37
↓ 4 callersMethodget_model_from_userdata
( $user_data )
inc/fragment.php:477
↓ 4 callersMethodget_post_terms
* Returns an array of the posts's taxonomy terms */
inc/fragment.php:600
↓ 4 callersMethodhas_approved_child
* Returns true if comment has approved child. * * @param $comment_ID * * @return bool */
o2.php:1255
↓ 4 callersMethodsettings_merge
* Logic to merge option/default arrays */
o2.php:602
↓ 4 callersFunctionweekOfYear
(mom, firstDayOfWeek, firstDayOfWeekOfYear)
js/utils/moment.js:1448
↓ 3 callersFunctionaddOrSubtractDurationFromMoment
(mom, duration, isAdding, ignoreUpdateOffset)
js/utils/moment.js:366
↓ 3 callersMethodadd_line_hash
( $line_hash )
modules/checklists/load.php:495
↓ 3 callersMethodadd_new_widget
( $base, $multiwidget, $settings, $area = '' )
inc/widget-helper.php:66
↓ 3 callersMethodbump_post
* Update post for polling (without creating a revision) * Useful for sticky state change, resolved state change, etc. */
inc/fragment.php:683
↓ 3 callersMethodclear_line_hashes
()
modules/checklists/load.php:491
↓ 3 callersFunctiondateFromConfig
(config)
js/utils/moment.js:1092
↓ 3 callersMethodget_app_controls
()
o2.php:492
↓ 3 callersMethodget_current_user_properties
()
inc/fragment.php:419
↓ 3 callersMethodget_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 callersMethodget_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 callersMethodget_post_user_properties
( $_post )
inc/fragment.php:505
↓ 3 callersMethodhash_line
( $content_line )
modules/checklists/load.php:215
↓ 3 callersFunctionisArray
(input)
js/utils/moment.js:398
↓ 3 callersMethodis_mobile
* Returns true if the user agent is recognized as a mobile device (or a tablet) */
o2.php:1175
↓ 3 callersMethodis_tablet
* Returns true if the user agent is recognized as a tablet */
o2.php:1183
↓ 3 callersFunctionmakeDateFromStringAndFormat
(config)
js/utils/moment.js:1202
↓ 3 callersFunctionmakeGlobal
Exposing Moment
js/utils/moment.js:2272
↓ 3 callersFunctionnormalizeLanguage
(key)
js/utils/moment.js:571
↓ 3 callersFunctiono2_get_comment_actions
( $location, $comment, $comment_depth )
inc/template-tags.php:310
↓ 3 callersMethodquery
* Multipurpose action hook for plugins */
inc/read-api.php:444
↓ 3 callersMethodshow_comments_initially
()
o2.php:516
↓ 3 callersMethodsite_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 callersMethodto_utf8
( $var )
inc/fragment.php:667
↓ 3 callersFunctionzero_prefix
( n )
modules/time-shortcode/js/time-shortcode.js:14
↓ 2 callersMethod__construct
()
modules/checklists/load.php:41
↓ 2 callersFunctioncheckOverflow
(m)
js/utils/moment.js:517
↓ 2 callersMethodclose_list
()
modules/checklists/load.php:283
↓ 2 callersFunctioncompareArrays
(array1, array2, dontConvert)
js/utils/moment.js:408
↓ 2 callersMethodcompletely_close_list
()
modules/checklists/load.php:314
↓ 2 callersMethodcreate_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 callersFunctiondayOfYearFromWeeks
(year, week, weekday, firstDayOfWeekOfYear, firstDayOfWeek)
js/utils/moment.js:1470
↓ 2 callersFunctiondaysInMonth
(year, month)
js/utils/moment.js:505
↓ 2 callersFunctiondaysInYear
(year)
js/utils/moment.js:509
↓ 2 callersMethoddisable_highlander
()
o2.php:168
↓ 2 callersFunctionexpandFormat
(format, lang)
js/utils/moment.js:881
↓ 2 callersFunctionformatMoment
(m, format)
js/utils/moment.js:866
↓ 2 callersMethodgather_all_tags
( $post )
inc/tags.php:375
↓ 2 callersMethodgenerate_title
( $message )
inc/write-api.php:216
↓ 2 callersFunctionget
(k)
js/utils/moment.js:787
↓ 2 callersMethodget_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 callersMethodget_details_from_subdomain
( $subdomain )
inc/xposts.php:197
↓ 2 callersMethodget_fragment_from_comment
( $my_comment )
inc/fragment.php:284
↓ 2 callersMethodget_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 callersMethodget_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 callersMethodget_post_tags_array
( $post_tags )
inc/fragment.php:570
↓ 2 callersMethodget_post_tags_raw
* Returns a raw string of comma delimited tags, suitable for editing (e.g. tag1, tag2, tag3) */
inc/fragment.php:553
↓ 2 callersMethodget_view_type
* Returns what type of 'view'/'page' is being returned by WordPress (home, single, search, etc) */
o2.php:691
↓ 2 callersFunctioninitializeParsingFlags
(config)
js/utils/moment.js:537
↓ 2 callersFunctionisLeapYear
(year)
js/utils/moment.js:513
↓ 2 callersFunctionisValid
(m)
js/utils/moment.js:552
↓ 2 callersMethodis_enabled
* Check if o2 is active on the current site. */
o2.php:1380
↓ 2 callersMethodis_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 callersMethodlist_item
( $bullet, $item_text, $content_line )
modules/checklists/load.php:244
↓ 2 callersFunctionmakeDurationAsGetter
(name, factor)
js/utils/moment.js:2231
↓ 2 callersFunctionmakeGetterAndSetter
(name, key)
js/utils/moment.js:2072
↓ 2 callersFunctionmakeMoment
Top Level Functions
js/utils/moment.js:1488
↓ 2 callersFunctionnormalizeObjectUnits
(inputObject)
js/utils/moment.js:430
↓ 2 callersMethodopen_list
( $contains_checkable_items )
modules/checklists/load.php:219
↓ 2 callersFunctionpadToken
(func, count)
js/utils/moment.js:253
↓ 2 callersFunctionparseWeekday
(input, language)
js/utils/moment.js:1388
↓ 2 callersMethodparse_lists
( $content )
modules/checklists/load.php:107
↓ 2 callersMethodpreserve_text
( $text )
modules/checklists/load.php:194
↓ 2 callersMethodremove_widget_instances
( $widget_base, $area = '' )
inc/widget-helper.php:148
↓ 2 callersMethodrequired_comment_fields
* Add the required strings for logged out commenters */
o2.php:588
next →1–100 of 488, ranked by callers