This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Read only | |
* | |
* @param string $field_content | |
* @param array $field | |
* @return string | |
*/ | |
function prefix_gform_field_readonly( $field_content, $field ) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DELETE FROM wp_options WHERE option_name LIKE '_wp_session_%'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
UPDATE | |
orbis_subscriptions | |
SET | |
cancel_date = NOW() | |
WHERE | |
cancel_date IS NULL | |
AND | |
type_id = 20 | |
; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<phpunit> | |
... | |
<logging> | |
<log type="coverage-html" target="build/logs/clover" charset="UTF-8" yui="true" highlight="true"/> | |
</logging> | |
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function orbis_timesheets_init() { | |
// @see http://codex.wordpress.org/Function_Reference/register_taxonomy | |
register_taxonomy( | |
'orbis_timesheets_activity', // taxonomy name | |
null, // object type | |
array( // arguments | |
'hierarchical' => true, | |
'labels' => array( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function orbis_timesheets_admin_menu() { | |
add_menu_page( | |
__( 'Orbis Timesheets', 'orbis_timesheets' ), | |
__( 'Timesheets', 'orbis_timesheets' ), | |
'manage_options', | |
'orbis_timesheets', | |
'__return_false', | |
'dashicons-clock', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Parent file | |
* | |
* @see https://github.com/WordPress/WordPress/blob/3.9.1/wp-admin/menu-header.php#L23 | |
* @param string $parent_file | |
* @return string | |
*/ | |
function orbis_timesheets_parent_file( $parent_file ) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function pronamic_custom_init() { | |
register_post_type( 'book', array( | |
'public' => true, | |
'label' => 'Books', | |
'capability_type' => 'book', | |
) ); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function pronamic_custom_admin_menu() { | |
add_submenu_page( | |
'options-general.php', | |
__( 'Post Capabilities', 'pronamic' ), | |
__( 'Post Capabilities', 'pronamic' ), | |
'manage_options', | |
'pronamic_custom_post_capabilities', | |
'pronamic_custom_page_permissions' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$update = filter_has_var( INPUT_POST, 'pronamic_save_permissions' ); | |
?> | |
<div class="wrap"> | |
<h2><?php echo get_admin_page_title(); ?></h2> | |
<form action="" method="post"> | |