Enable "add contributors" functionality

This commit is contained in:
Kelly Dwan 2019-11-13 16:05:18 -05:00
parent b0672a6f6e
commit 5a72ff8b53
No known key found for this signature in database
GPG key ID: 8BA5575F3D11575D
4 changed files with 63 additions and 6 deletions

View file

@ -483,6 +483,7 @@ function enqueue_assets() {
wp_register_script( '5ftf-admin', plugins_url( 'assets/js/admin.js', __DIR__ ), [ 'jquery' ], $ver );
$script_data = [
'pledgeId' => get_the_ID(),
'manageNonce' => wp_create_nonce( 'manage-pledge' ),
];
wp_add_inline_script(